|
@@ -20,7 +20,6 @@ import (
|
|
|
"miniflux.app/v2/internal/http/request"
|
|
"miniflux.app/v2/internal/http/request"
|
|
|
"miniflux.app/v2/internal/storage"
|
|
"miniflux.app/v2/internal/storage"
|
|
|
"miniflux.app/v2/internal/ui"
|
|
"miniflux.app/v2/internal/ui"
|
|
|
- "miniflux.app/v2/internal/version"
|
|
|
|
|
"miniflux.app/v2/internal/worker"
|
|
"miniflux.app/v2/internal/worker"
|
|
|
|
|
|
|
|
"github.com/gorilla/mux"
|
|
"github.com/gorilla/mux"
|
|
@@ -250,10 +249,6 @@ func setupHandler(store *storage.Storage, pool *worker.Pool) *mux.Router {
|
|
|
|
|
|
|
|
subrouter.HandleFunc("/healthcheck", readinessProbe).Name("healthcheck")
|
|
subrouter.HandleFunc("/healthcheck", readinessProbe).Name("healthcheck")
|
|
|
|
|
|
|
|
- subrouter.HandleFunc("/version", func(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
- w.Write([]byte(version.Version))
|
|
|
|
|
- }).Name("version")
|
|
|
|
|
-
|
|
|
|
|
if config.Opts.HasMetricsCollector() {
|
|
if config.Opts.HasMetricsCollector() {
|
|
|
subrouter.Handle("/metrics", promhttp.Handler()).Name("metrics")
|
|
subrouter.Handle("/metrics", promhttp.Handler()).Name("metrics")
|
|
|
subrouter.Use(func(next http.Handler) http.Handler {
|
|
subrouter.Use(func(next http.Handler) http.Handler {
|