From ccc037d93144abb79fc441d40db781697b9699fb Mon Sep 17 00:00:00 2001 From: "Diogo Caracol Mateus (caracold)" Date: Thu, 23 Apr 2020 04:25:39 +0100 Subject: [PATCH] root page --- app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);