File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
endpoints/getting-started Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change 1616'use strict' ;
1717
1818// [START endpoints_server_setup]
19- // [START setup]
2019const express = require ( 'express' ) ;
2120
2221const app = express ( ) ;
@@ -25,7 +24,6 @@ app.set('case sensitive routing', true);
2524
2625// This middleware is available in Express v4.16.0 onwards
2726app . use ( express . json ( ) ) ;
28- // [END setup]
2927// [END endpoints_server_setup]
3028
3129app . post ( '/echo' , ( req , res ) => {
@@ -46,13 +44,11 @@ app.get('/auth/info/googleidtoken', authInfoHandler);
4644
4745if ( module === require . main ) {
4846 // [START endpoints_server_listen]
49- // [START listen]
5047 const PORT = parseInt ( process . env . PORT ) || 8080 ;
5148 app . listen ( PORT , ( ) => {
5249 console . log ( `App listening on port ${ PORT } ` ) ;
5350 console . log ( 'Press Ctrl+C to quit.' ) ;
5451 } ) ;
55- // [END listen]
5652 // [END endpoints_server_listen]
5753}
5854// [END endpoints_express_auth]
You can’t perform that action at this time.
0 commit comments