From 9f6c27fa0dd65aa0a3fa440b0bd15f02f9a90bff Mon Sep 17 00:00:00 2001 From: WhiteSnake Date: Sat, 27 Apr 2024 23:20:56 +0530 Subject: [PATCH] added start script --- backend/package.json | 3 ++- backend/src/app.js | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 68888b5..39c94ac 100644 --- a/backend/package.json +++ b/backend/package.json @@ -5,7 +5,8 @@ "type": "module", "main": "index.js", "scripts": { - "dev": "nodemon -r dotenv/config --experimental-json-modules src/index.js" + "dev": "nodemon -r dotenv/config --experimental-json-modules src/index.js", + "start": "node src/index.js" }, "author": "Nikhil Kumar", "license": "ISC", diff --git a/backend/src/app.js b/backend/src/app.js index 0a0c0d4..6b36e93 100644 --- a/backend/src/app.js +++ b/backend/src/app.js @@ -24,6 +24,10 @@ import userRouter from './routes/user.routes.js' import listRouter from './routes/list.routes.js' import taskRouter from './routes/task.routes.js' +app.get('/',(req,res)=>{ + res.json('hello') +}) + // routes declaration app.use("/api/v1/users",userRouter) app.use("/api/v1/lists",listRouter)