mirror of https://github.com/Budibase/budibase.git
7 changed files with 62 additions and 14 deletions
@ -0,0 +1,11 @@ |
|||
exports.multiTenancyEnabled = async ctx => { |
|||
|
|||
} |
|||
|
|||
exports.exists = async ctx => { |
|||
|
|||
} |
|||
|
|||
exports.fetch = async ctx => { |
|||
|
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
const Router = require("@koa/router") |
|||
const controller = require("../../controllers/admin/tenants") |
|||
const joiValidator = require("../../../middleware/joi-validator") |
|||
const Joi = require("joi") |
|||
const { TemplatePurpose, TemplateTypes } = require("../../../constants") |
|||
const adminOnly = require("../../../middleware/adminOnly") |
|||
|
|||
const router = Router() |
|||
|
|||
router |
|||
.get("/api/admin/tenants/enabled", controller.multiTenancyEnabled) |
|||
.get("/api/admin/tenants/:tenantId/exists", controller.exists) |
|||
.get("/api/admin/tenants", adminOnly, controller.fetch) |
|||
|
|||
module.exports = router |
|||
Loading…
Reference in new issue