return empty domain list when none in database

This commit is contained in:
Alisdair MacLeod
2026-01-27 16:34:37 +00:00
parent 6e4e1386e7
commit 7b3523e25e
3 changed files with 11 additions and 3 deletions

View File

@@ -56,6 +56,10 @@ func (h *handler) getAllDomains(w http.ResponseWriter, r *http.Request) {
}
domains, err := h.manager.GetDomains(r.Context(), userAuth.AccountId)
if err != nil {
util.WriteError(r.Context(), err, w)
return
}
var ret []api.ReverseProxyDomain
for _, d := range domains {