working on subdirs by feed

This commit is contained in:
bel
2019-09-02 09:08:53 -06:00
parent 3281104f2e
commit 8a5a5d0cf4
9 changed files with 101 additions and 16 deletions

View File

@@ -79,6 +79,7 @@ func (s *Server) feed(w http.ResponseWriter, r *http.Request) {
URL string `json:"url"`
Interval string `json:"refresh"`
TitleFilter string `json:"items"`
Copyright string `json:"copyright"`
ContentFilter string `json:"content"`
Tags []string `json:"tags"`
}
@@ -97,6 +98,7 @@ func (s *Server) feed(w http.ResponseWriter, r *http.Request) {
TitleFilter: putFeed.TitleFilter,
ContentFilter: putFeed.ContentFilter,
Tags: putFeed.Tags,
Copyright: putFeed.Copyright,
}
if err := rss.SubmitFeed(f); err != nil {
s.error(w, r, err)