budibase/packages/server/api/routes/screen.js

12 lines
321 B
JavaScript
Raw Normal View History

2020-05-07 11:53:34 +02:00
const Router = require("@koa/router")
const controller = require("../controllers/screen")
2020-05-07 11:53:34 +02:00
const router = Router()
router
.get("/api/:instanceId/screens", controller.fetch)
.post("/api/:instanceId/screens", controller.save)
2020-05-07 11:53:34 +02:00
.delete("/api/:instanceId/:screenId/:revId", controller.destroy)
2020-05-07 11:53:34 +02:00
module.exports = router