mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
fix(config): [sync] missing base dir #778
This commit is contained in:
parent
c4f1e01e26
commit
564431cefe
5 changed files with 15 additions and 41 deletions
|
@ -18,10 +18,7 @@ import (
|
|||
|
||||
func AddConfig(c *gin.Context) {
|
||||
var json struct {
|
||||
Name string `json:"name" binding:"required"`
|
||||
BaseDir string `json:"base_dir"`
|
||||
Content string `json:"content"`
|
||||
Overwrite bool `json:"overwrite"`
|
||||
config.SyncConfigPayload
|
||||
SyncNodeIds []uint64 `json:"sync_node_ids"`
|
||||
}
|
||||
|
||||
|
@ -90,7 +87,7 @@ func AddConfig(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
err = config.SyncToRemoteServer(cfg, path)
|
||||
err = config.SyncToRemoteServer(cfg)
|
||||
if err != nil {
|
||||
api.ErrHandler(c, err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue