File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -13,5 +13,4 @@ Implements the Expressjs Hello World example to provide faster start deploying o
1313
1414- ` npm start `
1515- Browser: ` http://localhost:3443/some/path?q=query+one&q=second+query&single=value `
16- - Commandline: `curl -i -XGET "http://localhost:3443/cmd/line-curl "
17-
16+ - Commandline: ` curl -i -XGET "http://localhost:3443/cmd/line-curl" `
Original file line number Diff line number Diff line change @@ -2,14 +2,16 @@ const express = require('express')
22const app = express ( )
33
44app . get ( '/' , ( req , res ) => {
5+ console . log ( '[hello-world] root handler called' )
56 res
6- . set ( 'x-powered-by' , 'cyclic-express ' )
7+ . set ( 'x-powered-by' , 'cyclic.sh ' )
78 . send ( 'Hello World!' )
89} )
910
1011app . use ( '*' , ( req , res ) => {
12+ console . log ( '[hello-world] Star handler called' )
1113 res
12- . set ( 'x-powered-by' , 'cyclic-express ' )
14+ . set ( 'x-powered-by' , 'cyclic.sh ' )
1315 . json ( {
1416 msg : "Not strickly part of the hello world but you get the picture." ,
1517 at : new Date ( ) . toISOString ( ) ,
You can’t perform that action at this time.
0 commit comments