2021-03-26 15:56:34 +01:00
|
|
|
const Router = require("@koa/router")
|
2021-05-11 18:49:26 +02:00
|
|
|
const controller = require("../controllers/script")
|
2021-03-26 15:56:34 +01:00
|
|
|
const authorized = require("../../middleware/authorized")
|
2021-05-14 16:43:41 +02:00
|
|
|
const { BUILDER } = require("@budibase/auth/permissions")
|
2021-03-26 15:56:34 +01:00
|
|
|
|
|
|
|
const router = Router()
|
|
|
|
|
2021-04-30 16:44:37 +02:00
|
|
|
router.post("/api/script", authorized(BUILDER), controller.save)
|
2021-03-26 15:56:34 +01:00
|
|
|
|
|
|
|
module.exports = router
|