Skip to content

Commit

Permalink
demo api working
Browse files Browse the repository at this point in the history
  • Loading branch information
maaz1996 committed Feb 27, 2021
1 parent 5c35fc5 commit b82d72c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
const express=require("express");
const app= express();
const config= require ("./config")
// app.use("/api/v1");
app.use("/",(req,res,next)=>{
res.status(200).send({
status:"200",
message: "API Req ok"
})
}
);

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

0 comments on commit b82d72c

Please sign in to comment.