diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-04-13 13:24:08 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-04-13 13:24:28 +0200 |
commit | 76f46e54175253d4b2ba61b9cb8f2525a48c15d8 (patch) | |
tree | 8664af77e9bd66ae578fa83870026c2d6bca6065 /internal/api/handlers/handlers.go | |
parent | 72382e2dd9e509e6467dab9bfd11b7c7ddcf918a (diff) |
Create adversary's server
Diffstat (limited to 'internal/api/handlers/handlers.go')
-rw-r--r-- | internal/api/handlers/handlers.go | 2 |
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) { |