cmd/pkgserver: constant string in pattern

This resolves patterns at compile time.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-11 02:23:43 +09:00
parent e130443cf4
commit a1b515074e
3 changed files with 9 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ func main() {
var mux http.ServeMux
uiRoutes(&mux)
apiRoutes(&mux, &index)
index.registerAPI(&mux)
server := http.Server{
Addr: flagAddr,
Handler: &mux,