Added Health Endpoint
This commit is contained in:
@@ -44,6 +44,10 @@ async function main() {
|
||||
await initMailer();
|
||||
await initS3();
|
||||
|
||||
app.get('/health', async (req, res) => {
|
||||
return res.send({ status: 'ok' })
|
||||
})
|
||||
|
||||
/*app.addHook("onRequest", (req, reply, done) => {
|
||||
console.log("Incoming:", req.method, req.url, "Headers:", req.headers)
|
||||
done()
|
||||
|
||||
Reference in New Issue
Block a user