Skip to content

Commit

Permalink
oops lmfao
Browse files Browse the repository at this point in the history
  • Loading branch information
crock committed Oct 13, 2018
1 parent d8046f0 commit 7a97a13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ router.get('/', function(req, res) {

router.get('/check/services', function(req, res) {
var simple = {"services":[]};
var advanced = fs.readFileSync(path.join(__dirname, 'services.json'));
var advanced = require('services.json');
for (var key in advanced.services) {
simple.services.push(advanced.services[key].slug)
}
Expand All @@ -57,7 +57,7 @@ router.get('/check/services', function(req, res) {
});

router.get('/check/services/details', function(req, res) {
var json = fs.readFileSync(path.join(__dirname, 'services.json'));
var json = require('services.json');
res.type('json');
res.json(200, json);
});
Expand Down

0 comments on commit 7a97a13

Please sign in to comment.