mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
fix(onboarding): could not create user (#848)
fix: onboarding not working
This commit is contained in:
parent
d03561d61c
commit
7f05dd1efd
16 changed files with 182 additions and 130 deletions
|
@ -49,7 +49,7 @@ func (h downloadClientHandler) listDownloadClients(w http.ResponseWriter, r *htt
|
|||
return
|
||||
}
|
||||
|
||||
h.encoder.StatusResponse(ctx, w, clients, http.StatusOK)
|
||||
h.encoder.StatusResponse(w, http.StatusOK, clients)
|
||||
}
|
||||
|
||||
func (h downloadClientHandler) store(w http.ResponseWriter, r *http.Request) {
|
||||
|
@ -66,7 +66,7 @@ func (h downloadClientHandler) store(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
h.encoder.StatusResponse(r.Context(), w, client, http.StatusCreated)
|
||||
h.encoder.StatusResponse(w, http.StatusCreated, client)
|
||||
}
|
||||
|
||||
func (h downloadClientHandler) test(w http.ResponseWriter, r *http.Request) {
|
||||
|
@ -99,7 +99,7 @@ func (h downloadClientHandler) update(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
h.encoder.StatusResponse(r.Context(), w, client, http.StatusCreated)
|
||||
h.encoder.StatusResponse(w, http.StatusCreated, client)
|
||||
}
|
||||
|
||||
func (h downloadClientHandler) delete(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue