Merge branch 'develop' into feat/bulk-edit-notifications

This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-03-20 12:28:57 -07:00
commit d5968b841e
42 files changed
+378 -156

No files matched your search

+3 -2
View File
@@ -1,14 +1,15 @@
import { Router, RequestHandler } from "express";
import { isAllowed } from "../middleware/isAllowed.js";
import multer from "multer";
import { IAuthController } from "@/controllers/authController.js";
const upload = multer();
class AuthRoutes {
private router: Router;
private authController: any;
private authController: IAuthController;
constructor(authController: any, verifyJWT: RequestHandler) {
constructor(authController: IAuthController, verifyJWT: RequestHandler) {
this.router = Router();
this.authController = authController;
this.initRoutes(verifyJWT);
+3 -2
View File
@@ -1,12 +1,13 @@
import { Router } from "express";
import { isAllowed } from "../middleware/isAllowed.js";
import { ICheckController } from "@/controllers/checkController.js";
class CheckRoutes {
private router: Router;
private checkController: any;
private checkController: ICheckController;
constructor(checkController: any) {
constructor(checkController: ICheckController) {
this.router = Router();
this.checkController = checkController;
this.initRoutes();
+3 -2
View File
@@ -1,11 +1,12 @@
import { RequestHandler, Router } from "express";
import { isAllowed } from "../middleware/isAllowed.js";
import { IDiagnosticController } from "@/controllers/diagnosticController.js";
class DiagnosticRoutes {
private router: Router;
private diagnosticController: any;
private diagnosticController: IDiagnosticController;
constructor(diagnosticController: any, verifyJWT: RequestHandler) {
constructor(diagnosticController: IDiagnosticController, verifyJWT: RequestHandler) {
this.router = Router();
this.diagnosticController = diagnosticController;
this.initRoutes(verifyJWT);
+3 -2
View File
@@ -1,10 +1,11 @@
import { IGeoCheckController } from "@/controllers/geoCheckController.js";
import { Router } from "express";
class GeoCheckRoutes {
private router: Router;
private geoCheckController: any;
private geoCheckController: IGeoCheckController;
constructor(geoCheckController: any) {
constructor(geoCheckController: IGeoCheckController) {
this.router = Router();
this.geoCheckController = geoCheckController;
this.initRoutes();
+3 -2
View File
@@ -1,11 +1,12 @@
import { Router } from "express";
import { isAllowed } from "../middleware/isAllowed.js";
import { IIncidentController } from "@/controllers/incidentController.js";
class IncidentRoutes {
private router: Router;
private incidentController: any;
private incidentController: IIncidentController;
constructor(incidentController: any) {
constructor(incidentController: IIncidentController) {
this.router = Router();
this.incidentController = incidentController;
this.initRoutes();
+3 -2
View File
@@ -1,11 +1,12 @@
import { RequestHandler, Router } from "express";
import { isAllowed } from "../middleware/isAllowed.js";
import { IInviteController } from "@/controllers/inviteController.js";
class InviteRoutes {
private router: Router;
private inviteController: any;
private inviteController: IInviteController;
constructor(inviteController: any, verifyJWT: RequestHandler) {
constructor(inviteController: IInviteController, verifyJWT: RequestHandler) {
this.router = Router();
this.inviteController = inviteController;
this.initRoutes(verifyJWT);
+4 -3
View File
@@ -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();
+3 -2
View File
@@ -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();
+4 -8
View File
@@ -1,15 +1,11 @@
import { Router } from "express";
import { isAllowed } from "@/middleware/isAllowed.js";
import multer from "multer";
import { fetchMonitorCertificate } from "@/controllers/controllerUtils.js";
const upload = multer({
storage: multer.memoryStorage(), // Store file in memory as Buffer
});
import { IMonitorController } from "@/controllers/monitorController.js";
class MonitorRoutes {
private router: Router;
private monitorController: any;
constructor(monitorController: any) {
private monitorController: IMonitorController;
constructor(monitorController: IMonitorController) {
this.router = Router();
this.monitorController = monitorController;
this.initRoutes();
@@ -38,7 +34,7 @@ class MonitorRoutes {
// Util routes
this.router.get("/certificate/:monitorId", (req, res, next) => {
this.monitorController.getMonitorCertificate(req, res, next, fetchMonitorCertificate);
this.monitorController.getMonitorCertificate(req, res, next);
});
// General monitor CRUD routes
+3 -2
View File
@@ -1,9 +1,10 @@
import { INotificationController } from "@/controllers/notificationController.js";
import { Router } from "express";
class NotificationRoutes {
private router: Router;
private notificationController: any;
private notificationController: INotificationController;
constructor(notificationController: any) {
constructor(notificationController: INotificationController) {
this.router = Router();
this.notificationController = notificationController;
this.initializeRoutes();
+4 -3
View File
@@ -1,10 +1,11 @@
import { Router } from "express";
import { isAllowed } from "../middleware/isAllowed.js";
import { isAllowed } from "@/middleware/isAllowed.js";
import { IJobQueueController } from "@/controllers/queueController.js";
class QueueRoutes {
private router: Router;
private queueController: any;
private queueController: IJobQueueController;
constructor(queueController: any) {
constructor(queueController: IJobQueueController) {
this.router = Router();
this.queueController = queueController;
this.initRoutes();
+3 -2
View File
@@ -1,11 +1,12 @@
import { Router } from "express";
import { isAllowed } from "../middleware/isAllowed.js";
import { ISettingsController } from "@/controllers/settingsController.js";
class SettingsRoutes {
private router: Router;
private settingsController: any;
private settingsController: ISettingsController;
constructor(settingsController: any) {
constructor(settingsController: ISettingsController) {
this.router = Router();
this.settingsController = settingsController;
this.initRoutes();
+3 -2
View File
@@ -1,12 +1,13 @@
import { IStatusPageController } from "@/controllers/statusPageController.js";
import { RequestHandler, Router } from "express";
import multer from "multer";
const upload = multer();
class StatusPageRoutes {
private router: Router;
private statusPageController: any;
private statusPageController: IStatusPageController;
constructor(statusPageController: any, verifyJWT: RequestHandler, verifyStatusPageAccess: RequestHandler) {
constructor(statusPageController: IStatusPageController, verifyJWT: RequestHandler, verifyStatusPageAccess: RequestHandler) {
this.router = Router();
this.statusPageController = statusPageController;
this.initRoutes(verifyJWT, verifyStatusPageAccess);