From e289a43b38ac7377fc3d7de48100558bb4f7b88e Mon Sep 17 00:00:00 2001 From: Nikhil Dange Date: Mon, 26 Feb 2024 19:43:26 -0800 Subject: [PATCH] added auth decorator to GET attendance/user/uuid --- api/controllers/AttendanceController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/controllers/AttendanceController.ts b/api/controllers/AttendanceController.ts index e47bd121..ffc3c6c6 100644 --- a/api/controllers/AttendanceController.ts +++ b/api/controllers/AttendanceController.ts @@ -36,6 +36,7 @@ export class AttendanceController { return { error: null, attendances }; } + @UseBefore(UserAuthentication) @Get('/user/:uuid') async getAttendancesForUser(@Params() params: UuidParam, @AuthenticatedUser() currentUser: UserModel): Promise {