add json feed support
This commit is contained in:
parent
2b3045f773
commit
faa41e482a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue