There was an error while loading. Please reload this page.
1 parent f731fb1 commit 9ce550dCopy full SHA for 9ce550d
internal/server/server.go
@@ -40,9 +40,15 @@ func New(cfg serverConfig) *server {
40
41
func (s *server) Start() error {
42
log.Println("starting server")
43
+
44
+mux := http.NewServeMux()
45
46
+// Proxmox api routes
47
+mux.HandleFunc("/{any...}", getHandler(s))
48
49
s.s = &http.Server{
50
Addr: fmt.Sprintf("%s:%d", s.cfg.Host, s.cfg.Port),
-Handler: getHandler(s),
51
+Handler: mux,
52
}
53
defer s.s.Close()
54
return s.s.ListenAndServeTLS(s.cfg.TLSCrt, s.cfg.TLSKey)
0 commit comments