From a815c291074b454d4bb1a31067cd363c84df1360 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Fri, 12 Dec 2025 19:21:22 +0100 Subject: refactor(frontend): remove JS files --- backend/router.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'backend/router.go') diff --git a/backend/router.go b/backend/router.go index 3e6a39a..3eede92 100644 --- a/backend/router.go +++ b/backend/router.go @@ -19,7 +19,6 @@ import ( const ( Version = "0.4.0" configKey = "config" - isUpdateKey = "is_update" assetsFSKey = "assets_fs" debugKey = "debug" ) @@ -95,16 +94,6 @@ func NewRouter(debug bool, cfg *Config, assets fs.FS) *chi.Mux { next.ServeHTTP(w, r.WithContext(ctx)) }) }) - r.Use(func(next http.Handler) http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - val := false - if r.Header.Get("HX-Request") == "true" { - val = true - } - ctx := context.WithValue(r.Context(), isUpdateKey, val) - next.ServeHTTP(w, r.WithContext(ctx)) - }) - }) return r } -- cgit v1.2.3