mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
add json feed support
This commit is contained in:
parent
2b3045f773
commit
faa41e482a
@ -269,7 +269,7 @@ func FeedListHandler(rw http.ResponseWriter, req *http.Request) {
|
|||||||
}
|
}
|
||||||
writeJSON(rw, map[string]string{"status": "success"})
|
writeJSON(rw, map[string]string{"status": "success"})
|
||||||
}
|
}
|
||||||
} else if strings.Contains(contentType, "xml") {
|
} else if strings.Contains(contentType, "xml") || strings.Contains(contentType, "json") {
|
||||||
// text/xml, application/xml, application/rss+xml, application/atom+xml
|
// text/xml, application/xml, application/rss+xml, application/atom+xml
|
||||||
err = createFeed(db(req), feedUrl, feed.FolderID)
|
err = createFeed(db(req), feedUrl, feed.FolderID)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user