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

7 lines
184 B
JavaScript

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