Files
galaxy-game/internal/router/handler/status.go
T
Ilia Denisov 233c9ebc2a feat: order processing
feat: order commands result save/load
2026-02-20 17:44:41 +02:00

18 lines
243 B
Go

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