brainlet/api/v1/index.js

16 lines
385 B
JavaScript
Raw Normal View History

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" ] });
});
2020-10-05 20:36:03 +03:00
module.exports = app;