Lots of stuff

This commit is contained in:
Simon Martens
2024-11-11 20:53:27 +01:00
parent 61a51130dd
commit 0aec995441
7 changed files with 117 additions and 33 deletions

17
server/mux.go Normal file
View File

@@ -0,0 +1,17 @@
package server
import "net/http"
type Mux struct {
sm http.ServeMux
}
func NewMux() *Mux {
return &Mux{
sm: http.ServeMux{},
}
}
func (m *Mux) Router() *http.ServeMux {
return &m.sm
}