From 76360979f9b7898c1e331914b6037b01eab79807 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Jul 2026 20:18:18 +0900 Subject: internal/rosa: mirror response write methods For the fs.FS implementation and static publishing. Signed-off-by: Ophestra --- cmd/mbf/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd/mbf/main.go') diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index b2f2c0d6..471b595a 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -544,7 +544,9 @@ func main() { if base, err := os.OpenRoot(cm.base); err != nil { return err } else { - h = rosa.NewMirror(msg, base.FS(), key) + var mux http.ServeMux + rosa.NewMirror(msg, base.FS(), key).Register(&mux) + h = &mux } server := http.Server{Addr: args[0], Handler: h} -- cgit v1.3.1