Files
ai-agent/internal/handlers/api/config_handler.go
T

17 lines
378 B
Go
Raw Normal View History

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(),
})
}