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

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