Skip to content

Commit

Permalink
feat: add a status check to the random quote machine (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
a2937 authored Nov 3, 2023
1 parent e0aef5a commit 05e86c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/random-quote-machine/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ app.get('', (req, res) => {
res.sendFile(`${process.cwd()}/index.html`);
});

app.get('/status/ping', (req, res) => {
res.send({ msg: 'pong' }).status(200);
});

const portNum = process.env.PORT || 3000;

app.listen(portNum, () => {
Expand Down

0 comments on commit 05e86c9

Please sign in to comment.