Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
:
  • Loading branch information
jaspermayone committed Mar 7, 2025
1 parent 30fe32e commit 03f87bd
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/routes/admin/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ router.use(async (req, res, next) => {
* - Version information for API and all dependencies
* - Usage statistics across different time periods
* - API integration response counts
* @tags Misc - Miscellaneous endpoints
* @security BearerAuth
* @return {object} 200 - Detailed metrics response
* @return {object} 403 - Permission denied
Expand Down Expand Up @@ -225,17 +226,6 @@ router.get("/metrics", logRequest, async (req, res) => {
});
});

/**
* Admin Router Configuration
* @summary Administrative route handler with authentication and permission checks
* @description All routes under /admin require:
* 1. Valid JWT authentication token
* 2. Admin-level permissions
* Sub-routes include:
* - /admin/metrics: System metrics and statistics
* - /admin/domain: Domain management
* - /admin/user: User management
*/
router.use("/domain", logRequest, domainRouter);
router.use("/user", userRouter);

Expand Down

0 comments on commit 03f87bd

Please sign in to comment.