tsviewer/features/channel/routes.go

15 lines
211 B
Go
Raw Normal View History

2019-01-14 20:07:11 +00:00
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
}