Add distributed uptime router

This commit is contained in:
Alex Holliday committed 2025-01-02 11:47:09 -08:00
1 parent 3b5a1827ad
commit ba7cb151a2
1 file changed
+18
+18
View File
@@ -0,0 +1,18 @@
import { Router } from "express";
class DistributedUptimeRoutes {
constructor(distributedUptimeController) {
this.router = Router();
this.distributedUptimeController = distributedUptimeController;
this.initRoutes();
}
initRoutes() {
this.router.post("/callback", this.distributedUptimeController.resultsCallback);
}
getRouter() {
return this.router;
}
}
export default DistributedUptimeRoutes;