mirror of https://github.com/Budibase/budibase.git
9 changed files with 13 additions and 18 deletions
@ -1,4 +0,0 @@ |
|||
const app = require("express")() |
|||
const { router } = require("bull-board") |
|||
|
|||
app.use("/admin/queues", router) |
|||
@ -1,14 +1,10 @@ |
|||
const Router = require("@koa/router") |
|||
const controller = require("../controllers/hosting") |
|||
const authorized = require("../../middleware/authorized") |
|||
const selfhost = require("../../middleware/selfhost") |
|||
const { BUILDER } = require("../../utilities/security/permissions") |
|||
|
|||
const router = Router() |
|||
|
|||
router |
|||
.post("/api/script", authorized(BUILDER), controller.save) |
|||
// this isn't risky, doesn't return anything about apps other than names and URLs
|
|||
.get("/api/hosting/apps", selfhost, controller.getDeployedApps) |
|||
router.post("/api/script", authorized(BUILDER), controller.save) |
|||
|
|||
module.exports = router |
|||
|
|||
Loading…
Reference in new issue