mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
enhance: show the form error details of Preference
This commit is contained in:
parent
b0a3989ef4
commit
398eea2159
8 changed files with 74 additions and 22 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue