11 lines
305 B
JavaScript
11 lines
305 B
JavaScript
const Router = require("@koa/router");
|
|
const controller = require("../../controllers/database");
|
|
|
|
const router = Router();
|
|
|
|
router
|
|
.get("/api/databases", controller.fetch)
|
|
.post("/api/databases", controller.create)
|
|
.delete("/api/databases/:databaseId", controller.destroy);
|
|
|
|
module.exports = router; |