1
0
Fork 0
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:
jvoisin 2025-08-18 21:49:29 +02:00
parent 60cd7ffe88
commit 47f3ebed1d
7 changed files with 27 additions and 5 deletions

View file

@ -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)
}
}