mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-12 14:13:44 +00:00
feat: add Godot Agones REST bridge
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user