cmd/pkgserver: move ui internal

This avoids inadvertently exporting a go package. This change also cleans up generate layout.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-02 03:15:07 +09:00
parent 1c277d30a6
commit 5e50fede9a
12 changed files with 35 additions and 45 deletions

View File

@@ -11,6 +11,7 @@ import (
"time"
"hakurei.app/check"
"hakurei.app/cmd/pkgserver/internal/ui"
"hakurei.app/command"
"hakurei.app/internal/pkg"
"hakurei.app/internal/rosa"
@@ -81,7 +82,7 @@ func main() {
}
}()
var mux http.ServeMux
uiRoutes(&mux)
ui.Register(&mux)
index.registerAPI(&mux)
server := http.Server{
Addr: flagAddr,