aboutsummaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/api0/server.go2
1 files changed, 1 insertions, 1 deletions
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,