Skip to content
This repository was archived by the owner on Aug 18, 2023. It is now read-only.

Commit c307a7c

Browse files
committed
Add a custom Express route
1 parent 874fab3 commit c307a7c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/boot/routes.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = function(app) {
2+
// Install a "/ping" route that returns "pong"
3+
app.get('/ping', function(req, res) {
4+
res.send('pong');
5+
});
6+
}

0 commit comments

Comments
 (0)