feat: add Godot Agones REST bridge

This commit is contained in:
Josh Creek
2026-09-01 09:16:41 +01:00
parent 6caf719158
commit e7c835af52
7 changed files with 167 additions and 6 deletions
+2 -2
View File
@@ -67,10 +67,10 @@ func _respond(peer: StreamPeerTCP, request: String) -> void:
var status := 404
var reason := "Not Found"
var body := ""
if method == "GET" and path == "/ready":
if method in ["GET", "POST"] and path == "/ready":
status = 200 if _ready_for_connections else 503
reason = "OK" if status == 200 else "Service Unavailable"
elif method == "GET" and path == "/health":
elif method in ["GET", "POST"] and path == "/health":
status = 200
reason = "OK"
elif method == "POST" and path == "/drain":