feat: add domain registration expiry monitoring
Adds a GET /monitors/domain/:monitorId endpoint that looks up the registrable domain's WHOIS expiry date (walking up from subdomains), and displays it next to the certificate expiry on the uptime details page. Fixes #2094
This commit is contained in:
1 parent
4b921f4986
commit
e5959ca91d
13 files changed
+333
-5
No files matched your search
@@ -29,6 +29,9 @@ export const createMonitorRoutes = (monitorController: IMonitorController): Rout
|
||||
router.get("/certificate/:monitorId", (req, res, next) => {
|
||||
monitorController.getMonitorCertificate(req, res, next);
|
||||
});
|
||||
router.get("/domain/:monitorId", (req, res, next) => {
|
||||
monitorController.getMonitorDomain(req, res, next);
|
||||
});
|
||||
|
||||
// General monitor CRUD routes
|
||||
router.patch("/notifications", isAllowed(["admin", "superadmin"]), monitorController.updateNotifications);
|
||||
|
||||
Reference in new issue
Block a user