summaryrefslogtreecommitdiff
path: root/internal/api/handlers/handlers.go
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-04-13 13:24:08 +0200
committerSanto Cariotti <santo@dcariotti.me>2025-04-13 13:24:28 +0200
commit76f46e54175253d4b2ba61b9cb8f2525a48c15d8 (patch)
tree8664af77e9bd66ae578fa83870026c2d6bca6065 /internal/api/handlers/handlers.go
parent72382e2dd9e509e6467dab9bfd11b7c7ddcf918a (diff)
Create adversary's server
Diffstat (limited to 'internal/api/handlers/handlers.go')
-rw-r--r--internal/api/handlers/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/handlers/handlers.go b/internal/api/handlers/handlers.go
index ed4598d..55fa121 100644
--- a/internal/api/handlers/handlers.go
+++ b/internal/api/handlers/handlers.go
@@ -138,7 +138,7 @@ func NewPlay(w http.ResponseWriter, r *http.Request) {
return
}
- json.NewEncoder(w).Encode(map[string]string{"name": name})
+ json.NewEncoder(w).Encode(map[string]interface{}{"id": play.ID, "name": name})
}
func EnterGame(w http.ResponseWriter, r *http.Request) {