mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-14 10:20:06 +00:00
rewrite worker
This commit is contained in:
@@ -116,7 +116,7 @@ func (s *Server) handleFolder(c *router.Context) {
|
||||
|
||||
func (s *Server) handleFeedRefresh(c *router.Context) {
|
||||
if c.Req.Method == "POST" {
|
||||
s.worker.FetchAllFeeds()
|
||||
s.worker.RefreshFeeds()
|
||||
c.Out.WriteHeader(http.StatusOK)
|
||||
} else {
|
||||
c.Out.WriteHeader(http.StatusMethodNotAllowed)
|
||||
@@ -342,7 +342,7 @@ func (s *Server) handleOPMLImport(c *router.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
s.worker.FetchAllFeeds()
|
||||
s.worker.RefreshFeeds()
|
||||
c.Out.WriteHeader(http.StatusOK)
|
||||
} else {
|
||||
c.Out.WriteHeader(http.StatusMethodNotAllowed)
|
||||
|
Reference in New Issue
Block a user