internal/rosa: mirror response write methods

For the fs.FS implementation and static publishing.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-07-07 20:18:18 +09:00
parent 6d55ee536e
commit 76360979f9
4 changed files with 157 additions and 118 deletions
+3 -1
View File
@@ -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}