This commit is contained in:
Alex Holliday committed 2026-03-20 11:51:17 -07:00
1 parent 80f3168837
commit 05c293d689
2 files changed
+7 -3

No files matched your search

+4 -1
View File
@@ -6,7 +6,10 @@ import { AppError } from "@/utils/AppError.js";
const SERVICE_NAME = "geoCheckController";
class GeoCheckController {
export interface IGeoCheckController {
getGeoChecksByMonitor: (req: Request, res: Response, next: NextFunction) => Promise<Response | void>;
}
class GeoCheckController implements IGeoCheckController {
static SERVICE_NAME = SERVICE_NAME;
private geoChecksService: IGeoChecksService;
+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();