Files
Checkmate/server/src/routes/logRoutes.ts
T

21 lines
463 B
TypeScript
Raw Normal View History

2025-06-23 11:25:42 +08:00
import { Router } from "express";
2026-01-21 10:36:03 -08:00
import { isAllowed } from "../middleware/isAllowed.js";
2025-06-23 11:25:42 +08:00
class LogRoutes {
2026-01-21 10:36:03 -08:00
private router: Router;
private logController: any;
constructor(logController: any) {
2025-06-23 11:25:42 +08:00
this.router = Router();
this.logController = logController;
this.initRoutes();
}
initRoutes() {
this.router.get("/", isAllowed(["admin", "superadmin"]), this.logController.getLogs);
}
getRouter() {
return this.router;
}
}
export default LogRoutes;