log controller
This commit is contained in:
1 parent
d4a8023a76
commit
332300dde4
4 files changed
+20
-6
No files matched your search
@@ -1,10 +1,11 @@
|
||||
import { Router } from "express";
|
||||
import { isAllowed } from "../middleware/isAllowed.js";
|
||||
import { isAllowed } from "@/middleware/isAllowed.js";
|
||||
import { ILogController } from "@/controllers/logController.js";
|
||||
class LogRoutes {
|
||||
private router: Router;
|
||||
private logController: any;
|
||||
private logController: ILogController;
|
||||
|
||||
constructor(logController: any) {
|
||||
constructor(logController: ILogController) {
|
||||
this.router = Router();
|
||||
this.logController = logController;
|
||||
this.initRoutes();
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import { IMaintenanceWindowController } from "@/controllers/maintenanceWindowController.js";
|
||||
import { Router } from "express";
|
||||
|
||||
class MaintenanceWindowRoutes {
|
||||
private router: Router;
|
||||
private mwController: any;
|
||||
private mwController: IMaintenanceWindowController;
|
||||
|
||||
constructor(maintenanceWindowController: any) {
|
||||
constructor(maintenanceWindowController: IMaintenanceWindowController) {
|
||||
this.router = Router();
|
||||
this.mwController = maintenanceWindowController;
|
||||
this.initRoutes();
|
||||
|
||||
Reference in new issue
Block a user