Skip to content

Commit

Permalink
route file added
Browse files Browse the repository at this point in the history
  • Loading branch information
maaz1996 committed Mar 9, 2021
1 parent b82d72c commit 33bf450
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1,628 deletions.
13 changes: 12 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,22 @@ const config= require ("./config")
app.use("/",(req,res,next)=>{
res.status(200).send({
status:"200",
message: "API Req ok"
message: "Hello World"
})
}
);
// app.use("/api/v1", authroutes)
// const authroutes=require("../routes/authRoutes")

// // (req,res,next)=>{
// // res.status(200).send({
// // status:"200",
// // message: "API Req ok"
// // })
// // }
// // );

app.use
app.listen(config["port"],()=>{
console.log(`Server started on port :${config["port"]}`)
})
Loading

0 comments on commit 33bf450

Please sign in to comment.