forked from Cliffbreak/tsviewer
14 lines
211 B
Go
14 lines
211 B
Go
package channel
|
|
|
|
import (
|
|
"github.com/go-chi/chi"
|
|
)
|
|
|
|
func Routes(s Service) *chi.Mux {
|
|
router := chi.NewRouter()
|
|
|
|
router.Get("/{id}", ChannelHandler(s))
|
|
router.Get("/", ChannelsHandler(s))
|
|
|
|
return router
|
|
}
|