15 lines
208 B
Go
15 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
|
||
|
}
|