budibase/packages/server/src/api/routes/script.js

11 lines
322 B
JavaScript
Raw Normal View History

2021-03-26 15:56:34 +01:00
const Router = require("@koa/router")
const controller = require("../controllers/script")
2021-03-26 15:56:34 +01:00
const authorized = require("../../middleware/authorized")
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