|
1 | | -import express from 'express'; |
2 | | -import { Loader } from '../../startup/loader'; |
| 1 | +import express, { Router } from 'express'; |
| 2 | +// import { Loader } from '../../startup/loader'; |
3 | 3 | import { UserController } from '../controllers/user.controller'; |
4 | 4 |
|
5 | 5 | /////////////////////////////////////////////////////////////////////////////////// |
6 | 6 |
|
7 | 7 | export const register = (app: express.Application): void => { |
8 | | - const router = express.Router(); |
9 | | - const authenticator = Loader.authenticator; |
| 8 | + const router: Router = express.Router(); |
| 9 | + // const authenticator = Loader.authenticator; |
10 | 10 | const controller = new UserController(); |
11 | 11 |
|
12 | 12 | router.post('/', controller.create); |
13 | | - router.get('/', authenticator.authenticateUser, controller.search); |
14 | | - router.get('/:id', authenticator.authenticateUser, controller.getById); |
15 | | - router.delete('/:id', authenticator.authenticateUser, controller.delete); |
| 13 | + // router.get('/', authenticator.authenticateUser, controller.search); |
| 14 | + // router.get('/:id', authenticator.authenticateUser, controller.getById); |
| 15 | + // router.delete('/:id', authenticator.authenticateUser, controller.delete); |
16 | 16 |
|
17 | 17 | app.use('/api/v1/users', router); |
18 | 18 | }; |
0 commit comments