Skip to content

Commit 02151d5

Browse files
authored
feat(drum-machine): add status endpoint (#488)
1 parent 4e54cdc commit 02151d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: apps/drum-machine/server.js

+4
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)