From 18f48bdd90e7cb6f680f4bdf2b4f2ca0295408d9 Mon Sep 17 00:00:00 2001 From: Oguntola Joshua <101347375+ExtranoDev@users.noreply.github.com> Date: Fri, 22 Sep 2023 15:27:02 +0100 Subject: [PATCH] Update app.js --- app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.js b/app.js index dbe180af..1606a428 100644 --- a/app.js +++ b/app.js @@ -23,6 +23,11 @@ app.use('/api/organization', orgRoutes); app.use('/api/lunch', lunchRoutes); app.use('/api/withdrawals', withDrawalRoute); +app.use('/', (req, res) => { + res.status(200).send(`
Click here to go to the API doc
`) +}) + // Middlewares app.use(errorHandlerMiddleware); app.use(notFound);