select the newly added feed
This commit is contained in:
parent
fd44c98cd0
commit
96796702cf
3 changed files with 5 additions and 2 deletions
|
|
@ -188,7 +188,10 @@ func (s *Server) handleFeedList(c *router.Context) {
|
|||
s.db.CreateItems(worker.ConvertItems(result.Feed.Items, *feed))
|
||||
s.worker.FindFeedFavicon(*feed)
|
||||
|
||||
c.JSON(http.StatusOK, map[string]string{"status": "success"})
|
||||
c.JSON(http.StatusOK, map[string]interface{}{
|
||||
"status": "success",
|
||||
"feed": feed,
|
||||
})
|
||||
default:
|
||||
c.JSON(http.StatusOK, map[string]string{"status": "notfound"})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue