mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
minor refactoring
This commit is contained in:
parent
48f3cd3367
commit
9b064b1572
2 changed files with 5 additions and 16 deletions
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue