File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,17 @@ var app = express();
13
13
app . use ( express . static ( 'Parse-Dashboard/public' ) ) ;
14
14
15
15
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
+ } ) ;
27
27
} ) ;
28
28
29
29
// For every other request, go to index.html. Let client-side handle the rest.
You can’t perform that action at this time.
0 commit comments