mirror of
https://github.com/flavioribeiro/donut.git
synced 2025-09-30 12:52:08 +08:00
17 lines
233 B
Go
17 lines
233 B
Go
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
|
|
}
|