Add distributed uptime router
This commit is contained in:
1 parent
3b5a1827ad
commit
ba7cb151a2
1 file changed
+18
@@ -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;
|
||||
Reference in new issue
Block a user