enhance: show the form error details of Preference

This commit is contained in:
0xJacky 2024-01-28 15:01:46 +08:00
parent b0a3989ef4
commit 398eea2159
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
8 changed files with 74 additions and 22 deletions

View file

@ -27,7 +27,6 @@ func SaveSettings(c *gin.Context) {
return
}
// todo: omit protected fields when binding
fillSettings(&settings.ServerSettings, &json.Server)
fillSettings(&settings.NginxSettings, &json.Nginx)
fillSettings(&settings.OpenAISettings, &json.Openai)