Skip to content

Commit

Permalink
matching docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jprobinson committed Jun 4, 2017
1 parent 3dcd969 commit 68c5e9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/servers/kit/api/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ func (s service) ServiceDesc() *grpc.ServiceDesc {
// JSONEndpoints is a listing of all endpoints available in the Service.
func (s service) HTTPEndpoints() map[string]map[string]kitserver.Endpoint {
return map[string]map[string]kitserver.Endpoint{
"/most-popular/{resourceType:[a-z]+}/{section:[a-z]+}/{timeframe:[0-9]+}": {
"/svc/most-popular/{resourceType:[a-z]+}/{section:[a-z]+}/{timeframe:[0-9]+}": {
"GET": {
Endpoint: s.getMostPopular,
HTTPDecoder: decodeMostPopularRequest,
},
},
"/cats": {
"/svc/cats": {
"GET": {
Endpoint: s.getCats,
},
Expand Down

0 comments on commit 68c5e9c

Please sign in to comment.