forked from Cliffbreak/tsviewer
14 lines
208 B
Go
14 lines
208 B
Go
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
|
|
}
|