Add Proxmox API extensions, WebSocket monitoring, and email notifications

Co-authored-by: Ospab <189454929+Ospab@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-12 07:37:14 +00:00
parent 1a90aed682
commit d743cb2df0
8 changed files with 809 additions and 8 deletions

View File

@@ -7,7 +7,12 @@ import {
restartServer,
getServerStatus,
deleteServer,
changeRootPassword
changeRootPassword,
resizeServer,
createServerSnapshot,
getServerSnapshots,
rollbackServerSnapshot,
deleteServerSnapshot
} from './server.controller';
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
@@ -72,4 +77,11 @@ router.post('/:id/restart', restartServer);
router.delete('/:id', deleteServer);
router.post('/:id/password', changeRootPassword);
// Новые маршруты для управления конфигурацией и снэпшотами
router.put('/:id/resize', resizeServer);
router.post('/:id/snapshots', createServerSnapshot);
router.get('/:id/snapshots', getServerSnapshots);
router.post('/:id/snapshots/rollback', rollbackServerSnapshot);
router.delete('/:id/snapshots', deleteServerSnapshot);
export default router;