1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-22 17:18:37 +00:00

Add integration tests for feed creation

This commit is contained in:
Frédéric Guillot 2017-11-25 16:53:51 -08:00
parent f072439b79
commit 39b03cc393
46 changed files with 860 additions and 37 deletions

View file

@ -6,6 +6,7 @@ package api
import (
"errors"
"github.com/miniflux/miniflux2/server/api/payload"
"github.com/miniflux/miniflux2/server/core"
)
@ -25,7 +26,11 @@ func (c *Controller) CreateFeed(ctx *core.Context, request *core.Request, respon
return
}
response.JSON().Created(feed)
type result struct {
FeedID int64 `json:"feed_id"`
}
response.JSON().Created(&result{FeedID: feed.ID})
}
// RefreshFeed is the API handler to refresh a feed.