mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Move environment variables to config package
This commit is contained in:
parent
ffabb009b8
commit
da5c8c2edb
3 changed files with 57 additions and 34 deletions
|
@ -39,7 +39,7 @@ func (e *Engine) parseAll() {
|
|||
return e.cfg.BaseURL()
|
||||
},
|
||||
"hasOAuth2Provider": func(provider string) bool {
|
||||
return e.cfg.Get("OAUTH2_PROVIDER", "") == provider
|
||||
return e.cfg.OAuth2Provider() == provider
|
||||
},
|
||||
"hasKey": func(dict map[string]string, key string) bool {
|
||||
if value, found := dict[key]; found {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue