Skip to content
Permalink
Browse files
root page
  • Loading branch information
caracold committed Apr 23, 2020
1 parent cadb4c6 commit ccc037d93144abb79fc441d40db781697b9699fb
Showing 1 changed file with 2 additions and 3 deletions.
5 app.js
@@ -29,10 +29,9 @@ app.use((req, res, next) => {
next();
});

//Ensuring a browser that reaches the API's homepage is redirected to an existing route
app.get('/', function(req, res) {
res.redirect('/itemlist');
});
res.send('This is the root page')
})

app.use('/itemlist', itemRoutes);
app.use('/user', userRoutes);

0 comments on commit ccc037d

Please sign in to comment.