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)
|
|
|
|
.post("/api/:instanceId/views", controller.create);
|
|
|
|
// .patch("/api/:databaseId/views", controller.update);
|
2020-04-08 12:18:30 +02:00
|
|
|
|
|
|
|
module.exports = router;
|