mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Refactor config package
- Parse configuration only once during startup time - Store configuration values in a global variable
This commit is contained in:
parent
04d85b3c63
commit
228862fefa
28 changed files with 922 additions and 624 deletions
|
@ -37,7 +37,7 @@ func (h *handler) saveEntry(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
go func() {
|
||||
integration.SendEntry(h.cfg, entry, settings)
|
||||
integration.SendEntry(entry, settings)
|
||||
}()
|
||||
|
||||
json.Created(w, r, map[string]string{"message": "saved"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue