Update server root message

This commit is contained in:
rui hildt 2020-06-17 13:21:13 +02:00
parent d46a19b424
commit 12ecf719e9

View File

@ -34,10 +34,11 @@ server.use('/api/possible-dates', possibleDatesRoute);
server.use('/api/availability', availabilityRoute);
server.use('/api/auth', authRoute);
server.get('/', (req, res) =>
res
.status(200)
.send('<h2>Welcome to Meeting Planner Backend API service.</h2>'),
);
server.get("/", (req, res) => {
res.json({
message: `Meeting Planner Backend API :)`,
documentation: `Check out: https://git.armada.digital/meeting-planner/backend`
});
});
module.exports = server;