implemented deactivated services banner

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-26 16:49:32 +02:00
parent 6fb03530df
commit 4a3c948386
7 changed files with 104 additions and 6 deletions
+14 -1
View File
@@ -9,7 +9,11 @@ const user_frontend_service = "User Frontend";
const contact_form_service = "Contact Form Service";
// database funcs import
import { loginFunc, changePassword } from "./database/userMgmt.database.js";
import {
loginFunc,
changePassword,
getDeactivatedServices,
} from "./database/userMgmt.database.js";
import { sendMail } from "./services/mailer_v2.js";
router.post(
@@ -63,4 +67,13 @@ router.post(
},
);
router.get("/deactivated-services", authenticate, async (req, res) => {
const result = await getDeactivatedServices();
if (result.success) {
res.status(200).json(result.data);
} else {
res.status(500).json({ message: "Failed to fetch deactivated services" });
}
});
export default router;