Skip to content

Commit

Permalink
Merge pull request #14 from angelikadraczynska/atlas
Browse files Browse the repository at this point in the history
Atlas
  • Loading branch information
angelika-draczynska authored Feb 4, 2020
2 parents 6d26e79 + b9e4c53 commit f2a80b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions routes/concerts.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const ConcertsController = require('../controllers/concerts.controller');

router.get('/concerts', ConcertsController.getAll);
router.get('/concerts/:id', ConcertsController.getById);
router.post('/concerts', ConcertsController.postDepartment);
router.put('/concerts/:id', ConcertsController.editDepartment);
router.delete('/concerts/:id', ConcertsController.deleteDepartment);
router.post('/concerts', ConcertsController.postConcert);
router.put('/concerts/:id', ConcertsController.editConcert);
router.delete('/concerts/:id', ConcertsController.deleteConcert);

module.exports = router;
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ app.use((req, res) => {
res.status(404).json({ message: 'Not found...' });
});

mongoose.connect('mongodb://localhost:27017/NewWaveDB', { useNewUrlParser: true });
mongoose.connect("mongodb+srv://angela:puszek@cluster0-3aa9o.mongodb.net/test?retryWrites=true&w=majority", { useNewUrlParser: true, useUnifiedTopology: true });
const db = mongoose.connection;

const server = app.listen(process.env.PORT || 8000, () => {
Expand Down

0 comments on commit f2a80b0

Please sign in to comment.