Commit 6050aa37 authored by Yoon, Daeki's avatar Yoon, Daeki 😅
Browse files

역할(role) 콘트롤러 추가

parent 1cc54e56
export * as userCtrl from "./user.controller";
export * as authCtrl from "./auth.controller"; export * as authCtrl from "./auth.controller";
export * as roleCtrl from "./role.controller";
export * as userCtrl from "./user.controller";
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);
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment