Skip to content

Commit

Permalink
feat: Add a status check to the pokeapi-proxy (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
a2937 authored Nov 6, 2023
1 parent 7598086 commit 1f5478f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/pokeapi-proxy/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ app.get('/', (req, res) => {
res.sendFile(__dirname + '/views/index.html');
});

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

// API routes
app.use('/api', pokemonRouter);

Expand Down

0 comments on commit 1f5478f

Please sign in to comment.