Skip to content

Commit 4e54cdc

Browse files
a2937huyenltnguyen
andauthored
feat(25--5-clock): add status endpoint (#486)
Co-authored-by: Huyen Nguyen <[email protected]>
1 parent 9031dd8 commit 4e54cdc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/25--5-clock/server.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ app.get('', (req, res) => {
88
res.sendFile(`${process.cwd()}/index.html`);
99
});
1010

11+
app.get('/status/ping', (req, res) => {
12+
res.send({ msg: 'pong' }).status(200);
13+
});
14+
1115
const portNum = process.env.PORT || 3000;
1216

1317
app.listen(portNum, () => {

0 commit comments

Comments
 (0)