16 lines
400 B
JavaScript
16 lines
400 B
JavaScript
|
const usersAPI = require('./users');
|
||
|
const contentAPI = require('./content');
|
||
|
|
||
|
const express = require('express');
|
||
|
|
||
|
const app = express.Router();
|
||
|
|
||
|
app.use('/users', usersAPI);
|
||
|
app.use('/content', contentAPI);
|
||
|
|
||
|
app.get('/', (req, res) => {
|
||
|
// TODO: Add more checks for this, or maybe remove
|
||
|
res.json({ apiStatus: 'OK', apis: [ 'users', 'content' ] });
|
||
|
});
|
||
|
|
||
|
module.exports = app;
|