Skip to content

Commit

Permalink
better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranKaira committed Feb 28, 2021
1 parent d8cf05b commit f9d7bf3
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ const _ = require('lodash');
const mongoose = require("mongoose");
const credentials = require(__dirname + '/Credentials.js');

// mongoose.connect('mongodb://localhost:27017/ElectionCorruption',{
// useNewUrlParser : true,
// useUnifiedTopology:true
// });
//! for local testing and development .

//? mongoose.connect('mongodb://localhost:27017/ElectionCorruption',{
//? useNewUrlParser : true,
//? useUnifiedTopology:true
//? });


//! for deployment

mongoose.connect(credentials.link,{
useNewUrlParser: true,
Expand Down Expand Up @@ -96,7 +101,7 @@ app.post("/compose" , (req , res)=>{

});

// update
//* update
app.get('/update/:id' , (req,res)=>{

const reqd = req.params.id;
Expand All @@ -118,7 +123,7 @@ app.post('/update/:id' , (req,res)=>{
});


// delete
//* delete
app.post('/delete/:id',(req,res)=>{

const reqd = req.params.id;
Expand Down

0 comments on commit f9d7bf3

Please sign in to comment.