budibase/packages/server/api/routes/neo/view.js

12 lines
390 B
JavaScript
Raw Normal View History

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);
module.exports = router;