aboutsummaryrefslogtreecommitdiff
path: root/internal/api
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2023-09-27 21:15:32 -0700
committerGravatar Frédéric Guillot <f@miniflux.net> 2023-09-27 21:45:23 -0700
commitf98fc1e03a6d732611fc05a7f714e3f3a0292cfc (patch)
tree62745f05871fe2d2f35dfa87ab3b2e535c52e6fa /internal/api
parent39d752ca85d0f590684af76f53eedbdc53f81801 (diff)
downloadv2-f98fc1e03a6d732611fc05a7f714e3f3a0292cfc.tar.gz
v2-f98fc1e03a6d732611fc05a7f714e3f3a0292cfc.tar.zst
v2-f98fc1e03a6d732611fc05a7f714e3f3a0292cfc.zip
Add command line argument to export user feeds
Diffstat (limited to 'internal/api')
-rw-r--r--internal/api/opml.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/opml.go b/internal/api/opml.go
index be1833d7..ffab8088 100644
--- a/internal/api/opml.go
+++ b/internal/api/opml.go
@@ -14,13 +14,13 @@ import (
func (h *handler) exportFeeds(w http.ResponseWriter, r *http.Request) {
opmlHandler := opml.NewHandler(h.store)
- opml, err := opmlHandler.Export(request.UserID(r))
+ opmlExport, err := opmlHandler.Export(request.UserID(r))
if err != nil {
json.ServerError(w, r, err)
return
}
- xml.OK(w, r, opml)
+ xml.OK(w, r, opmlExport)
}
func (h *handler) importFeeds(w http.ResponseWriter, r *http.Request) {