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
1e910f2e
Commit
1e910f2e
authored
Jul 08, 2022
by
Yoon, Daeki
😅
Browse files
Merge branch 'develop'
parents
5c9540ec
2e1489ce
Changes
22
Hide whitespace changes
Inline
Side-by-side
src/routes/index.ts
View file @
1e910f2e
import
express
from
"
express
"
;
import
express
from
"
express
"
;
import
userRouter
from
"
./user.route
"
;
import
authRouter
from
"
./auth.route
"
;
import
authRouter
from
"
./auth.route
"
;
import
questionRouter
from
"
./question.route
"
;
import
roleRouter
from
"
./role.route
"
;
import
roleRouter
from
"
./role.route
"
;
import
userRouter
from
"
./user.route
"
;
const
router
=
express
.
Router
();
const
router
=
express
.
Router
();
router
.
use
(
"
/auth
"
,
authRouter
);
router
.
use
(
"
/auth
"
,
authRouter
);
router
.
use
(
"
/questions
"
,
questionRouter
);
router
.
use
(
"
/roles
"
,
roleRouter
);
router
.
use
(
"
/roles
"
,
roleRouter
);
router
.
use
(
"
/users
"
,
userRouter
);
router
.
use
(
"
/users
"
,
userRouter
);
...
...
src/routes/question.route.ts
0 → 100644
View file @
1e910f2e
import
express
from
"
express
"
;
import
{
questionCtrl
}
from
"
../controllers
"
;
const
router
=
express
.
Router
();
router
.
route
(
"
/create
"
)
.
post
(
questionCtrl
.
createQuestion
);
export
default
router
;
Prev
1
2
Next
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