backend for xcvr appview

still not fully sure how i'm supposed to do my responses loll

+3 -1
+3 -1
server/internal/handler/oauthHandlers.go
··· 216 216 h.serverError(w, errors.New("failed to kick user "+ban.Did+err.Error())) 217 217 return 218 218 } 219 - http.Redirect(w, r, fmt.Sprintf("%s%d", os.Getenv("BAN_ENDPOINT"), ban.Id), http.StatusFound) 219 + w.Header().Set("Location", fmt.Sprintf("%s%d", os.Getenv("BAN_ENDPOINT"), ban.Id)) 220 + w.WriteHeader(http.StatusCreated) 221 + w.Write(nil) 220 222 } 221 223 222 224 func (h *Handler) getBan(w http.ResponseWriter, r *http.Request) {