Skip to content

Commit

Permalink
added start script
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteSnek committed Apr 27, 2024
1 parent 3f169bb commit 9f6c27f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions backend/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f6c27f

Please sign in to comment.