budibase/packages/server/middleware/routes/neo/model.js

13 lines
386 B
JavaScript
Raw Normal View History

2020-04-08 17:57:27 +02:00
const Router = require("@koa/router");
const controller = require("../../controllers/model");
const router = Router();
router
2020-04-09 17:53:48 +02:00
.get("/api/:instanceId/models", controller.fetch)
.post("/api/:instanceId/models", controller.create)
2020-04-13 12:47:53 +02:00
// .patch("/api/:instanceId/models", controller.update)
// .delete("/api/:instanceId/models/:modelId", controller.delete)
2020-04-08 17:57:27 +02:00
module.exports = router;