mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-11 01:01:05 +08:00
correct api path
This commit is contained in:
parent
12004aa09a
commit
7d8aeb66c1
1 changed files with 2 additions and 2 deletions
|
|
@ -52,8 +52,8 @@ func DeleteRelay(hostID string) *models.ApiHost {
|
|||
// RefreshKeys - refresh wireguard keys
|
||||
func RefreshKeys(hostID string) any {
|
||||
if hostID == "" {
|
||||
return request[any](http.MethodPost, "/api/hosts/keys", nil)
|
||||
return request[any](http.MethodPut, "/api/hosts/keys", nil)
|
||||
}
|
||||
return request[any](http.MethodPost, fmt.Sprintf("/api/hosts/%s/keys", hostID), nil)
|
||||
return request[any](http.MethodPut, fmt.Sprintf("/api/hosts/%s/keys", hostID), nil)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue