mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
use Chi Router instead of Chi Mux.
This commit is contained in:
@ -26,9 +26,7 @@ func New(
|
||||
}
|
||||
}
|
||||
|
||||
func (h *RoomHandler) Router() *chi.Mux {
|
||||
r := chi.NewRouter()
|
||||
|
||||
func (h *RoomHandler) Route(r chi.Router) {
|
||||
// TODO: Authorizaton.
|
||||
r.Route("/screen", func(r chi.Router) {
|
||||
r.Get("/", h.ScreenConfiguration)
|
||||
@ -41,6 +39,4 @@ func (h *RoomHandler) Router() *chi.Mux {
|
||||
r.Get("/", h.ClipboardRead)
|
||||
r.Post("/", h.ClipboardWrite)
|
||||
})
|
||||
|
||||
return r
|
||||
}
|
||||
|
Reference in New Issue
Block a user