2020-05-07 11:53:34 +02:00
|
|
|
const Router = require("@koa/router")
|
|
|
|
const controller = require("../controllers/screen")
|
2020-04-29 21:29:42 +02:00
|
|
|
|
2020-05-07 11:53:34 +02:00
|
|
|
const router = Router()
|
2020-04-29 21:29:42 +02:00
|
|
|
|
|
|
|
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-04-29 21:29:42 +02:00
|
|
|
|
2020-05-07 11:53:34 +02:00
|
|
|
module.exports = router
|