forked from hippoz/brainlet
16 lines
No EOL
400 B
JavaScript
Executable file
16 lines
No EOL
400 B
JavaScript
Executable file
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; |