mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-12 09:40:46 +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
|
// RefreshKeys - refresh wireguard keys
|
||||||
func RefreshKeys(hostID string) any {
|
func RefreshKeys(hostID string) any {
|
||||||
if hostID == "" {
|
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