feat: implement full CRUD and administrative management endpoints for WAP servers in the sysadmin API

This commit is contained in:
2026-07-28 22:45:26 -03:00
parent 0eb2e91e15
commit 3d8911c093
11 changed files with 2144 additions and 10 deletions
+10
View File
@@ -5,5 +5,15 @@ const router = Router();
const wapController = new WapController();
router.post("/paginate", wapController.getServers);
router.post("/update", wapController.updateServer);
router.post("/audit", wapController.auditServer);
router.post("/recalculate-count", wapController.recalculateCount);
router.post("/delete", wapController.deleteServer);
router.post("/bot/start", wapController.startBot);
router.post("/bot/stop", wapController.stopBot);
router.post("/bot/restart", wapController.restartBot);
router.post("/bot/qr", wapController.getBotQr);
router.post("/bot/delete", wapController.deleteBot);
router.post("/bot/detach", wapController.detachOrganizationServer);
export default router;