Files
Ilia Denisov 9ade76e21d fs storage
2026-03-13 21:07:23 +02:00

18 lines
244 B
Go

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