Files
galaxy-game/internal/router/handler/status.go
T
Ilia Denisov d9c8de27e5 refactor: executors and routers
* refactor: executors and routers
2026-02-09 15:53:34 +03:00

18 lines
244 B
Go

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