Skip to content

Commit

Permalink
feat: Add a status check to the palindrome checker (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
a2937 authored Nov 6, 2023
1 parent 77bccc6 commit 7598086
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/palindrome-checker/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 7598086

Please sign in to comment.