mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
Add command line argument to export user feeds
This commit is contained in:
parent
39d752ca85
commit
f98fc1e03a
5 changed files with 50 additions and 5 deletions
|
@ -13,11 +13,11 @@ import (
|
|||
)
|
||||
|
||||
func (h *handler) exportFeeds(w http.ResponseWriter, r *http.Request) {
|
||||
opml, err := opml.NewHandler(h.store).Export(request.UserID(r))
|
||||
opmlExport, err := opml.NewHandler(h.store).Export(request.UserID(r))
|
||||
if err != nil {
|
||||
html.ServerError(w, r, err)
|
||||
return
|
||||
}
|
||||
|
||||
xml.Attachment(w, r, "feeds.opml", opml)
|
||||
xml.Attachment(w, r, "feeds.opml", opmlExport)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue