add a test email route to settings routes
This commit is contained in:
1 parent
0906e883c5
commit
bea8ddb330
2 files changed
+7
-2
No files matched your search
@@ -4,8 +4,8 @@ import multer from "multer";
|
|||||||
import { fetchMonitorCertificate } from "../controllers/controllerUtils.js";
|
import { fetchMonitorCertificate } from "../controllers/controllerUtils.js";
|
||||||
|
|
||||||
const upload = multer({
|
const upload = multer({
|
||||||
storage: multer.memoryStorage() // Store file in memory as Buffer
|
storage: multer.memoryStorage(), // Store file in memory as Buffer
|
||||||
});
|
});
|
||||||
|
|
||||||
class MonitorRoutes {
|
class MonitorRoutes {
|
||||||
constructor(monitorController) {
|
constructor(monitorController) {
|
||||||
|
|||||||
@@ -15,6 +15,11 @@ class SettingsRoutes {
|
|||||||
isAllowed(["admin", "superadmin"]),
|
isAllowed(["admin", "superadmin"]),
|
||||||
this.settingsController.updateAppSettings
|
this.settingsController.updateAppSettings
|
||||||
);
|
);
|
||||||
|
this.router.post(
|
||||||
|
"/test-email",
|
||||||
|
isAllowed(["admin", "superadmin"]),
|
||||||
|
this.settingsController.sendTestEmail
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
getRouter() {
|
getRouter() {
|
||||||
|
|||||||
Reference in new issue
Block a user