From 8338614fe653f6fd2c35396a68ac06150d864101 Mon Sep 17 00:00:00 2001 From: Ashade Samson Date: Wed, 24 Jul 2024 22:43:04 +0100 Subject: [PATCH] feat: super admin gets log of activities --- src/routes/admin.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/routes/admin.ts b/src/routes/admin.ts index 2a691b49..85ba00c0 100644 --- a/src/routes/admin.ts +++ b/src/routes/admin.ts @@ -44,4 +44,13 @@ adminRouter.post( adminOrganisationController.setUserRole.bind(adminOrganisationController), ); +// Logs +adminRouter.get( + "/logs", + Limiter, + authMiddleware, + checkPermissions([UserRole.SUPER_ADMIN]), + adminLogController.getLogs.bind(adminLogController), +); + export { adminRouter };