API — Routes
Alle Routen abrufen
GET /api/routesAntwort:
{ "play.meinserver.de": { "host": "10.0.0.5", "port": 25565 }}Route erstellen
POST /api/routesContent-Type: application/json
{ "domain": "play.meinserver.de", "host": "10.0.0.5", "port": 25565}Route löschen
DELETE /api/routes/:domainWartungsmodus
POST /api/routes/:domain/maintenanceContent-Type: application/json
{ "enabled": true }Antwort:
{ "status": "ok", "maintenance": true }VPN-Check konfigurieren
POST /api/routes/:domain/vpncheckContent-Type: application/json
{ "enabled": true, "showMotd": true, "motdText": "Zeile 1\nZeile 2", "kickMessage": "VPN-Verbindungen sind auf diesem Server nicht erlaubt."}Antwort:
{ "status": "ok", "vpnCheckEnabled": true, "vpnShowMotd": true }