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 16
16
'use strict' ;
17
17
18
18
// [START endpoints_server_setup]
19
- // [START setup]
20
19
const express = require ( 'express' ) ;
21
20
22
21
const app = express ( ) ;
@@ -25,7 +24,6 @@ app.set('case sensitive routing', true);
25
24
26
25
// This middleware is available in Express v4.16.0 onwards
27
26
app . use ( express . json ( ) ) ;
28
- // [END setup]
29
27
// [END endpoints_server_setup]
30
28
31
29
app . post ( '/echo' , ( req , res ) => {
@@ -46,13 +44,11 @@ app.get('/auth/info/googleidtoken', authInfoHandler);
46
44
47
45
if ( module === require . main ) {
48
46
// [START endpoints_server_listen]
49
- // [START listen]
50
47
const PORT = parseInt ( process . env . PORT ) || 8080 ;
51
48
app . listen ( PORT , ( ) => {
52
49
console . log ( `App listening on port ${ PORT } ` ) ;
53
50
console . log ( 'Press Ctrl+C to quit.' ) ;
54
51
} ) ;
55
- // [END listen]
56
52
// [END endpoints_server_listen]
57
53
}
58
54
// [END endpoints_express_auth]
You can’t perform that action at this time.
0 commit comments