backend/api/server.js

14 lines
335 B
JavaScript
Raw Normal View History

2020-04-30 12:25:28 +00:00
const express = require("express");
2020-05-01 15:32:46 +00:00
const accountsRoute = require('./routes/accountRoute');
2020-04-30 12:25:28 +00:00
const server = express();
2020-05-01 15:32:46 +00:00
server.use(express.json());
2020-04-30 12:25:28 +00:00
server.use('/api/accounts', accountsRoute);
2020-04-30 18:39:51 +00:00
server.get('/', (req, res) =>
res.status(200).send('<h2>Welcome to Meeting Planner Backend API service.</h2>'),
);
2020-04-30 12:25:28 +00:00
module.exports = server;