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
|
@ -243,7 +243,9 @@ func setupHandler(store *storage.Storage, pool *worker.Pool) *mux.Router {
|
|||
|
||||
fever.Serve(subrouter, store)
|
||||
googlereader.Serve(subrouter, store)
|
||||
api.Serve(subrouter, store, pool)
|
||||
if config.Opts.EnableAPI() {
|
||||
api.Serve(subrouter, store, pool)
|
||||
}
|
||||
ui.Serve(subrouter, store, pool)
|
||||
|
||||
subrouter.HandleFunc("/healthcheck", readinessProbe).Name("healthcheck")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue