select the newly added feed

This commit is contained in:
Nazar Kanaev
2021-04-07 15:05:11 +01:00
parent fd44c98cd0
commit 96796702cf
3 changed files with 5 additions and 2 deletions

View File

@@ -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"})
}