Skip to content

Commit e8112ce

Browse files
committed
Fix spacing
1 parent 3dc97a5 commit e8112ce

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Parse-Dashboard/index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ var app = express();
1313
app.use(express.static('Parse-Dashboard/public'));
1414

1515
app.get('/parse-dashboard-config.json', function(req, res) {
16-
jsonFile(__dirname + '/parse-dashboard-config.json')
17-
.then(config => res.json(config.data))
18-
.catch(error => {
19-
if (error instanceof SyntaxError) {
20-
res.send({ success: false, error: 'Your parse-dashboard-config.json file contains invalid JSON.' });
21-
} else if (error.code === 'ENOENT') {
22-
res.send({ success: false, error: 'Your parse-dashboard-config.json file is missing.' });
23-
} else {
24-
res.send({ success: false, error: 'There was a problem with your parse-dashboard-config.json file.' });
25-
}
26-
});
16+
jsonFile(__dirname + '/parse-dashboard-config.json')
17+
.then(config => res.json(config.data))
18+
.catch(error => {
19+
if (error instanceof SyntaxError) {
20+
res.send({ success: false, error: 'Your parse-dashboard-config.json file contains invalid JSON.' });
21+
} else if (error.code === 'ENOENT') {
22+
res.send({ success: false, error: 'Your parse-dashboard-config.json file is missing.' });
23+
} else {
24+
res.send({ success: false, error: 'There was a problem with your parse-dashboard-config.json file.' });
25+
}
26+
});
2727
});
2828

2929
// For every other request, go to index.html. Let client-side handle the rest.

0 commit comments

Comments
 (0)