summaryrefslogtreecommitdiff
path: root/pkg/cfg/mux.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-13 09:16:39 -0600
committermo khan <mo@mokhan.ca>2025-03-13 09:16:39 -0600
commitfa141110137caafd40ab62d33fe8acc3048d4c84 (patch)
tree269219ff5984935e8a1b0182aa536c5eb4ed3d0f /pkg/cfg/mux.go
parent6ad85c4bd167c9f114c1d2574f4887826689b76d (diff)
refactor: extract cfg package
Diffstat (limited to 'pkg/cfg/mux.go')
-rw-r--r--pkg/cfg/mux.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/cfg/mux.go b/pkg/cfg/mux.go
new file mode 100644
index 0000000..694ee9e
--- /dev/null
+++ b/pkg/cfg/mux.go
@@ -0,0 +1,9 @@
+package cfg
+
+import "net/http"
+
+func WithMux(mux http.Handler) Option {
+ return func(config *Config) {
+ config.Mux = mux
+ }
+}