split components

This commit is contained in:
Leandro Moreira
2024-01-26 19:13:23 -03:00
parent f053662036
commit e8188cbfc5
15 changed files with 541 additions and 265 deletions

16
internal/web/router.go Normal file
View File

@@ -0,0 +1,16 @@
package handlers
import "net/http"
func NewServeMux(
index *IndexHandler,
signaling *SignalingHandler,
) *http.ServeMux {
mux := http.NewServeMux()
mux.Handle("/", index)
mux.Handle("/doSignaling", signaling)
return mux
}