forked from security/hakurei
cmd/pkgserver: constant string in pattern
This resolves patterns at compile time. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user