diff --git a/app.js b/app.js index 791be80..4fd4d08 100644 --- a/app.js +++ b/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);