mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Offer the possibility to set Pocket Consumer Key as environment variable
This commit is contained in:
parent
44decae557
commit
b270159aae
10 changed files with 31 additions and 19 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/miniflux/miniflux/config"
|
||||
"github.com/miniflux/miniflux/http/context"
|
||||
"github.com/miniflux/miniflux/http/request"
|
||||
"github.com/miniflux/miniflux/http/response/json"
|
||||
|
@ -128,6 +129,7 @@ type favicon struct {
|
|||
|
||||
// Controller implements the Fever API.
|
||||
type Controller struct {
|
||||
cfg *config.Config
|
||||
store *storage.Storage
|
||||
}
|
||||
|
||||
|
@ -528,7 +530,7 @@ func (c *Controller) handleWriteItems(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
go func() {
|
||||
integration.SendEntry(entry, settings)
|
||||
integration.SendEntry(c.cfg, entry, settings)
|
||||
}()
|
||||
}
|
||||
|
||||
|
@ -642,6 +644,6 @@ func (c *Controller) buildFeedGroups(feeds model.Feeds) []feedsGroups {
|
|||
}
|
||||
|
||||
// NewController returns a new Fever API.
|
||||
func NewController(store *storage.Storage) *Controller {
|
||||
return &Controller{store: store}
|
||||
func NewController(cfg *config.Config, store *storage.Storage) *Controller {
|
||||
return &Controller{cfg, store}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue