Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
survey
Commits
6050aa37
Commit
6050aa37
authored
Jul 08, 2022
by
Yoon, Daeki
😅
Browse files
역할(role) 콘트롤러 추가
parent
1cc54e56
Changes
2
Show whitespace changes
Inline
Side-by-side
src/controllers/index.ts
View file @
6050aa37
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
"
;
src/controllers/role.controller.ts
0 → 100644
View file @
6050aa37
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
);
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment