tsviewer/features/api/client/routes.go

15 lines
217 B
Go
Raw Permalink Normal View History

2019-01-15 00:46:39 +00:00
package client
import (
"github.com/go-chi/chi"
)
2019-01-16 21:01:48 +00:00
func APIRoutes(s Service) *chi.Mux {
2019-01-15 00:46:39 +00:00
router := chi.NewRouter()
2019-01-16 21:01:48 +00:00
router.Get("/{id}", ClientAPIHandler(s))
router.Get("/", ClientsAPIHandler(s))
2019-01-15 00:46:39 +00:00
return router
}