From 9e3059d3706f53d6b6a7dd10ad9bc5cacf4d051a Mon Sep 17 00:00:00 2001 From: Junaid Metkari Date: Thu, 18 Jun 2026 20:34:43 +0530 Subject: [PATCH] fix: add root route for deployed backend Adds a root endpoint ("/") that returns a success response. Previously, requests to the root URL would fall through to the notFound handler and return: { "success": false, "message": "Api url doesn't exist" } This change provides a simple API status response when accessing the deployed backend root URL. --- backend/src/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/src/app.js b/backend/src/app.js index 3611c5a018..eed882b99b 100644 --- a/backend/src/app.js +++ b/backend/src/app.js @@ -18,6 +18,14 @@ const fileUpload = require('express-fileupload'); // create our Express app const app = express(); + +app.get('/', (req, res) => { + res.json({ + success: true, + message: 'API is running successfully 🚀', + }); +}); + app.use( cors({ origin: true,