2020-04-08 12:18:30 +02:00
|
|
|
const Router = require("@koa/router");
|
|
|
|
const controller = require("../../controllers/view");
|
|
|
|
|
|
|
|
const router = Router();
|
|
|
|
|
|
|
|
router
|
2020-04-13 17:22:30 +02:00
|
|
|
.get("/api/:instanceId/views", controller.fetch)
|
|
|
|
// .patch("/api/:databaseId/views", controller.update);
|
2020-04-13 18:08:53 +02:00
|
|
|
// .delete("/api/:instanceId/views/:viewId/:revId", controller.destroy);
|
|
|
|
.post("/api/:instanceId/views", controller.create);
|
2020-04-08 12:18:30 +02:00
|
|
|
|
|
|
|
module.exports = router;
|