minor refactoring

This commit is contained in:
Roman Isaev 2025-01-05 02:38:07 +00:00
parent 48f3cd3367
commit 9b064b1572
No known key found for this signature in database
GPG key ID: 7BE2B6A6C89AEC7F
2 changed files with 5 additions and 16 deletions

View file

@ -352,7 +352,7 @@ func Setup(
case http.MethodGet:
return AdminRetrieveAccount(r, cfg, userAPI)
case http.MethodPut:
return AdminCreateOrModifyAccount(r, userAPI)
return AdminCreateOrModifyAccount(r, userAPI, cfg)
default:
return util.JSONResponse{Code: http.StatusMethodNotAllowed, JSON: nil}
}