11 lines
315 B
JavaScript
11 lines
315 B
JavaScript
const Router = require("@koa/router");
|
|
const controller = require("../../controllers/view");
|
|
|
|
const router = Router();
|
|
|
|
router
|
|
.get("/api/:instanceId/views", controller.fetch)
|
|
.post("/api/:instanceId/views", controller.create);
|
|
// .patch("/api/:databaseId/views", controller.update);
|
|
|
|
module.exports = router; |