cmd/pkgserver: do not assume default mux

This helps with testing.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-10 23:59:16 +09:00
parent 4a63fbbc2a
commit fa9bc70b39
3 changed files with 12 additions and 12 deletions

View File

@@ -49,8 +49,8 @@ func main() {
if err != nil {
return err
}
uiRoutes()
apiRoutes(index, cache)
uiRoutes(http.DefaultServeMux)
apiRoutes(http.DefaultServeMux, index)
err = http.ListenAndServe(fmt.Sprintf(":%d", flagPort), nil)
if err != nil {
return err