Skip to content

Commit

Permalink
Merge pull request #292 from AshadeSamson/feat/admin-get-activities-log
Browse files Browse the repository at this point in the history
feat: super admin gets log of activities
  • Loading branch information
incredible-phoenix246 authored Jul 24, 2024
2 parents 5106890 + 8338614 commit 897445d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/routes/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

0 comments on commit 897445d

Please sign in to comment.