Skip to content

API — Routes

Alle Routen abrufen

GET /api/routes

Antwort:

{
"play.meinserver.de": {
"host": "10.0.0.5",
"port": 25565
}
}

Route erstellen

POST /api/routes
Content-Type: application/json
{
"domain": "play.meinserver.de",
"host": "10.0.0.5",
"port": 25565
}

Route löschen

DELETE /api/routes/:domain

Wartungsmodus

POST /api/routes/:domain/maintenance
Content-Type: application/json
{ "enabled": true }

Antwort:

{ "status": "ok", "maintenance": true }

VPN-Check konfigurieren

POST /api/routes/:domain/vpncheck
Content-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 }