From af3091087e412460d84ae456e2ec9faaa1111398 Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Sat, 15 Oct 2022 07:37:26 -0400 Subject: pkg/api/api0: Fix /server/add_server response status --- pkg/api/api0/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/api') diff --git a/pkg/api/api0/server.go b/pkg/api/api0/server.go index 880d912..dc0391d 100644 --- a/pkg/api/api0/server.go +++ b/pkg/api/api0/server.go @@ -292,7 +292,7 @@ func (h *Handler) handleServerAddServer(w http.ResponseWriter, r *http.Request) return } - respJSON(w, r, http.StatusInternalServerError, map[string]any{ + respJSON(w, r, http.StatusOK, map[string]any{ "success": true, "id": nsrv.ID, "serverAuthToken": nsrv.ServerAuthToken, -- cgit v1.2.3