Skip to content

Commit

Permalink
some cahnges
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlypanda committed Jul 10, 2020
1 parent af034ef commit 1755e0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions login , sign-up rest api's/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mongoose.Promise=global.Promise;
mongoose.connect(db.DATABASE,{ useNewUrlParser: true,useUnifiedTopology:true },function(err){
if(err) console.log(err);
console.log("database is connected");
})
});


// adding new user (sign-up route)
Expand Down Expand Up @@ -98,10 +98,10 @@ app.get('/api/profile',auth,function(req,res){

app.get('/',function(req,res){
res.status(200).send(`Welcome to login , sign-up api`);
})
});

// listening port
const PORT=process.env.PORT||3000;
app.listen(PORT,()=>{
console.log(`app is live at ${PORT}`);
})
});

0 comments on commit 1755e0a

Please sign in to comment.