Skip to content

Commit dc5d96e

Browse files
committed
fix: authorize endpoint session
1 parent d5b55d0 commit dc5d96e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/controllers/Session/controller.ts

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import SessionService from 'controllers/Session/service'
77

88
routes.get(
99
'/session',
10+
Authorization,
1011
asyncHandler(async function getAll(req: Request, res: Response) {
1112
const data = await SessionService.getAll(req)
1213
const buildResponse = BuildResponse.get(data)
@@ -17,6 +18,7 @@ routes.get(
1718

1819
routes.get(
1920
'/session/:id',
21+
Authorization,
2022
asyncHandler(async function getOne(req: Request, res: Response) {
2123
const { id } = req.getParams()
2224

0 commit comments

Comments
 (0)