package api import ( "code.tczkiot.com/wlw/ai-agent/internal/pkg/config" "code.tczkiot.com/wlw/ai-agent/internal/pkg/dto/response" "code.tczkiot.com/wlw/ai-agent/internal/pkg/httpx" "github.com/gin-gonic/gin" ) func PublicConfig(ctx *gin.Context) { cfg := config.Current() httpx.WriteJSON(ctx, &response.PublicConfigResponse{ Language: cfg.LanguageOrDefault(), }) }