summaryrefslogtreecommitdiff
path: root/internal/api/handlers/handlers.go
diff options
context:
space:
mode:
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) {