File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const path = require('path');
4
4
5
5
app . use ( express . static ( 'public' ) ) ;
6
6
7
- app . get ( '/' , function ( req , res ) {
7
+ app . get ( '/' , ( req , res ) => {
8
8
res . sendFile ( path . join ( __dirname + '/index.html' ) ) ;
9
9
} ) ;
10
10
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ app.set('view engine', 'mustache');
15
15
app . set ( 'views' , __dirname + '/views' ) ;
16
16
app . use ( express . static ( 'public' ) ) ;
17
17
18
- app . get ( '/' , function ( req , res ) {
18
+ app . get ( '/' , ( req , res ) => {
19
19
res . render ( 'index.mustache' , {
20
20
time : timeSince ,
21
21
} ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ app.set('view engine', 'mustache');
15
15
app . set ( 'views' , __dirname + '/views' ) ;
16
16
app . use ( express . static ( 'public' ) ) ;
17
17
18
- app . get ( '/' , function ( req , res ) {
18
+ app . get ( '/' , ( req , res ) => {
19
19
res . render ( 'index.mustache' , {
20
20
time : timeSince ,
21
21
} ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ app.set('view engine', 'mustache');
15
15
app . set ( 'views' , __dirname + '/views' ) ;
16
16
app . use ( express . static ( 'public' ) ) ;
17
17
18
- app . get ( '/' , function ( req , res ) {
18
+ app . get ( '/' , ( req , res ) => {
19
19
res . render ( 'index.mustache' , {
20
20
time : timeSince ,
21
21
} ) ;
You can’t perform that action at this time.
0 commit comments