remove self host check from apps call
This commit is contained in:
parent
31c48c170d
commit
8dfec750b9
|
@ -1,7 +1,6 @@
|
||||||
const Router = require("@koa/router")
|
const Router = require("@koa/router")
|
||||||
const controller = require("../controllers/hosting")
|
const controller = require("../controllers/hosting")
|
||||||
const authorized = require("../../middleware/authorized")
|
const authorized = require("../../middleware/authorized")
|
||||||
const selfhost = require("../../middleware/selfhost")
|
|
||||||
const { BUILDER } = require("@budibase/auth/permissions")
|
const { BUILDER } = require("@budibase/auth/permissions")
|
||||||
|
|
||||||
const router = Router()
|
const router = Router()
|
||||||
|
@ -9,6 +8,6 @@ const router = Router()
|
||||||
router
|
router
|
||||||
.get("/api/hosting/urls", authorized(BUILDER), controller.fetchUrls)
|
.get("/api/hosting/urls", authorized(BUILDER), controller.fetchUrls)
|
||||||
// this isn't risky, doesn't return anything about apps other than names and URLs
|
// this isn't risky, doesn't return anything about apps other than names and URLs
|
||||||
.get("/api/hosting/apps", selfhost, controller.getDeployedApps)
|
.get("/api/hosting/apps", controller.getDeployedApps)
|
||||||
|
|
||||||
module.exports = router
|
module.exports = router
|
||||||
|
|
Loading…
Reference in New Issue