role.controller.ts 209 Bytes
Newer Older
Yoon, Daeki's avatar
Yoon, Daeki committed
1
2
3
4
5
6
7
import { roleDb } from "../db";
import { asyncWrap } from "../helpers";

export const getRoles = asyncWrap(async (req, res, next) => {
  const roles = await roleDb.getAllRoles();
  return res.json(roles);
});