19 lines
413 B
JavaScript
19 lines
413 B
JavaScript
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;
|