Skip to content

Commit 19fca1f

Browse files
authored
add health endpoint (#21)
1 parent 338519b commit 19fca1f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

routes/routes.js

+8
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,14 @@ module.exports = function (app) {
298298
// https://developers.google.com/identity/protocols/OAuth2WebServer
299299
app.get('/api/revoke', tokenController.revoke);
300300

301+
app.get('/health', (req, res) => {
302+
res.status(200).json({
303+
status: 'UP',
304+
message: 'Server is healthy',
305+
timestamp: new Date().toISOString(),
306+
});
307+
});
308+
301309
require('./adminApi')(app);
302310

303311
// Handle 404

0 commit comments

Comments
 (0)