func listApplications(core *roll.Core, w http.ResponseWriter, r *http.Request) { subject, scope, err := subjectAndAdminScopeFromRequestCtx(r) if err != nil { respondError(w, http.StatusInternalServerError, nil) return } apps, err := core.ListApplications(subject, scope) if err != nil { respondError(w, http.StatusInternalServerError, err) return } respondOk(w, apps) }