1
0
Fork 0
mirror of synced 2024-06-23 08:30:31 +12:00
budibase/packages/server/src/api/controllers/script.js

12 lines
320 B
JavaScript
Raw Normal View History

const ScriptRunner = require("../../utilities/scriptRunner")
2021-03-26 00:17:04 +13:00
2021-05-04 20:55:14 +12:00
exports.execute = async function (ctx) {
const { script, context } = ctx.request.body
const runner = new ScriptRunner(script, context)
ctx.body = runner.execute()
}
2021-05-12 04:50:26 +12:00
exports.save = async function (ctx) {
ctx.throw(501, "Not currently implemented")
2021-03-26 00:17:04 +13:00
}