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

@ -87,9 +87,11 @@ type certJson struct {
func AddCert(c *gin.Context) {
var json certJson
if !api.BindAndValid(c, &json) {
return
}
certModel := &model.Cert{
Name: json.Name,
SSLCertificatePath: json.SSLCertificatePath,