Files
galaxy-game/internal/router/handler/turn.go
T
2026-02-12 14:27:56 +03:00

18 lines
245 B
Go

package handler
import (
"net/http"
"github.com/gin-gonic/gin"
)
func TurnHandler(c *gin.Context, executor CommandExecutor) {
state, err := executor.GenerateTurn()
if errorResponded(c, err) {
return
}
c.JSON(http.StatusOK, state)
}