File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " active-directory-javascript-graphapi-v2" ,
3
+ "license" : " MIT" ,
4
+ "main" : " server.js" ,
5
+ "dependencies" : {
6
+ "express" : " ^4.12.3" ,
7
+ "morgan" : " ^1.5.2" ,
8
+ "path" : " ^0.11.14"
9
+ }
10
+ }
Original file line number Diff line number Diff line change @@ -15,14 +15,13 @@ var port = 44316; // process.env.PORT || 44316;
15
15
app . use ( morgan ( 'dev' ) ) ;
16
16
17
17
// Set the front-end folder to serve public assets.
18
- app . use ( "/dist" , express . static ( path . join ( __dirname , "../../dist" ) ) ) ;
19
- app . use ( "/bower_components" , express . static ( path . join ( __dirname , 'bower_components' ) ) ) ;
18
+ app . use ( express . static ( 'JavaScriptSPA' ) )
20
19
21
20
// Set up our one route to the index.html file.
22
21
app . get ( '*' , function ( req , res ) {
23
- res . sendFile ( path . join ( __dirname + '/index_LoginRedirect .html' ) ) ;
22
+ res . sendFile ( path . join ( __dirname + '/index .html' ) ) ;
24
23
} ) ;
25
24
26
25
// Start the server.
27
26
app . listen ( port ) ;
28
- console . log ( 'Listening on port ' + port + '...' ) ;
27
+ console . log ( 'Listening on port ' + port + '...' ) ;
You can’t perform that action at this time.
0 commit comments