Files
Checkmate/server/routes/logRoutes.js
T

18 lines
403 B
JavaScript
Raw Normal View History

2025-06-23 11:25:42 +08:00
import { Router } from "express";
import { isAllowed } from "../middleware/isAllowed.js";
class LogRoutes {
constructor(logController) {
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;