2020-04-08 12:18:30 +02:00
|
|
|
const Router = require("@koa/router");
|
2020-05-04 18:13:57 +02:00
|
|
|
const controller = require("../controllers/view");
|
2020-04-08 12:18:30 +02:00
|
|
|
|
|
|
|
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;
|