From 0afb79e783f829f06f78614f2032299d47d267db Mon Sep 17 00:00:00 2001 From: Jason Efstathiou Date: Mon, 7 Oct 2024 17:09:51 +0200 Subject: [PATCH] move before auth middleware --- src/server.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server.ts b/src/server.ts index 56d5661..4a551c2 100644 --- a/src/server.ts +++ b/src/server.ts @@ -118,6 +118,10 @@ const startServer = async () => { app.set('trust proxy', 1); + app.route('/health').get((_, res) => { + res.status(200).send('OK'); + }); + app.use( '/', cors(),