budibase/packages/server/middleware/routeHandlers/getAccessLevels.js

7 lines
191 B
JavaScript

const StatusCodes = require("../../utilities/statusCodes")
module.exports = async ctx => {
ctx.body = await ctx.instance.authApi.getAccessLevels()
ctx.response.status = StatusCodes.OK
}