brainlet/api/v1/index.js
2020-10-05 20:36:03 +03:00

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;