Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshacharya2468 authored Jul 8, 2020
1 parent aa067e5 commit 0167be8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ app.use(express.json());
app.use(express.static(__dirname+"/public"));
mongoose.connect(connectionString,{useNewUrlParser:true,useUnifiedTopology:true,useCreateIndex:true});
const server=app.listen(process.env.PORT||8080,()=>console.log("Server running ..."));
console.log(precess.env.name);
const appMiddleware=require("./middlewares/appmiddleware");
app.use("/account",appMiddleware,authRoute);
app.use("/categories",appMiddleware,categoryRoute);
Expand Down

0 comments on commit 0167be8

Please sign in to comment.