tsviewer/features/client/routes.go

15 lines
208 B
Go
Raw Normal View History

2019-01-15 00:46:39 +00:00
package client
import (
"github.com/go-chi/chi"
)
func Routes(s Service) *chi.Mux {
router := chi.NewRouter()
router.Get("/{id}", ClientHandler(s))
router.Get("/", ClientsHandler(s))
return router
}