Skip to content

Commit fd3b6c1

Browse files
chore: (endpoints) update region tag in endpoints/getting-started/app.js (#3970)
* chore: (endpoints) update region tag in endpoints/getting-started/app.js * chore: (endpoints) update region tag setup in endpoints/getting-started/app.js --------- Co-authored-by: Jennifer Davis <[email protected]>
1 parent b9f9a79 commit fd3b6c1

File tree

1 file changed

+4
-0
lines changed
  • endpoints/getting-started

1 file changed

+4
-0
lines changed

endpoints/getting-started/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// [START endpoints_express_auth]
1616
'use strict';
1717

18+
// [START endpoints_server_setup]
1819
// [START setup]
1920
const express = require('express');
2021

@@ -25,6 +26,7 @@ app.set('case sensitive routing', true);
2526
// This middleware is available in Express v4.16.0 onwards
2627
app.use(express.json());
2728
// [END setup]
29+
// [END endpoints_server_setup]
2830

2931
app.post('/echo', (req, res) => {
3032
res.status(200).json({message: req.body.message}).end();
@@ -43,13 +45,15 @@ app.get('/auth/info/googlejwt', authInfoHandler);
4345
app.get('/auth/info/googleidtoken', authInfoHandler);
4446

4547
if (module === require.main) {
48+
// [START endpoints_server_listen]
4649
// [START listen]
4750
const PORT = parseInt(process.env.PORT) || 8080;
4851
app.listen(PORT, () => {
4952
console.log(`App listening on port ${PORT}`);
5053
console.log('Press Ctrl+C to quit.');
5154
});
5255
// [END listen]
56+
// [END endpoints_server_listen]
5357
}
5458
// [END endpoints_express_auth]
5559

0 commit comments

Comments
 (0)