mirror of
https://github.com/miniflux/v2.git
synced 2025-10-15 19:42:07 +00:00
feat(api): add a preference to disable the API
This commit is contained in:
parent
60cd7ffe88
commit
47f3ebed1d
7 changed files with 27 additions and 5 deletions
|
@ -260,6 +260,8 @@ func (p *parser) parseLines(lines []string) (err error) {
|
|||
p.opts.invidiousInstance = parseString(value, defaultInvidiousInstance)
|
||||
case "WEBAUTHN":
|
||||
p.opts.webAuthn = parseBool(value, defaultWebAuthn)
|
||||
case "DISABLE_API":
|
||||
p.opts.API = !parseBool(value, defaultDisableAPI)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue