forked from rosa/hakurei
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:
+3
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user