Skip to content
Permalink
Browse files
default page
  • Loading branch information
caracold committed Apr 22, 2020
1 parent da240e8 commit b33ed1cdafff07cd7ee7a58d943d9029e7425fde
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 155 deletions.
4 app.js
@@ -8,6 +8,10 @@ const itemRoutes = require('./api/routes/items');
const userRoutes = require('./api/routes/user');
const msgRoutes = require('./api/routes/messages');

app.get('/', function(req, res) {
res.redirect('/itemlist');
});

mongoose.connect(
'mongodb+srv://Caracold:' + process.env.DB_PW + '@cluster0-kbwm8.mongodb.net/test?retryWrites=true&w=majority', { useNewUrlParser: true, useUnifiedTopology: true })

0 comments on commit b33ed1c

Please sign in to comment.