File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,22 +2,22 @@ const express = require("express");
2
2
const app = express ( ) ;
3
3
const PORT = 3000 ;
4
4
5
- app . get ( "/" , function ( req , res ) {
5
+ app . get ( "/" , ( req , res ) => {
6
6
res . send ( "Hello World!" ) ;
7
7
} ) ;
8
8
9
- app . post ( "/" , function ( req , res ) {
9
+ app . post ( "/" , ( req , res ) => {
10
10
res . send ( `Hello, i got a ${ req . method } request` ) ;
11
11
} ) ;
12
12
13
- app . put ( "/" , function ( req , res ) {
13
+ app . put ( "/" , ( req , res ) => {
14
14
res . send ( `Hello, i got a ${ req . method } request` ) ;
15
15
} ) ;
16
16
17
- app . delete ( "/" , function ( req , res ) {
17
+ app . delete ( "/" , ( req , res ) => {
18
18
res . send ( `Hello, i got a ${ req . method } request` ) ;
19
19
} ) ;
20
20
21
- const server = app . listen ( PORT , function ( ) {
21
+ const server = app . listen ( PORT , ( ) => {
22
22
console . log ( `You're listening to the smooth sounds of port ${ PORT } ...` ) ;
23
23
} ) ;
You can’t perform that action at this time.
0 commit comments