(appGUID string)
| 37 | } |
| 38 | |
| 39 | func (client Client) GetApplicationRoutes(appGUID string) ([]resources.Route, Warnings, error) { |
| 40 | var routes []resources.Route |
| 41 | |
| 42 | _, warnings, err := client.MakeListRequest(RequestParams{ |
| 43 | RequestName: internal.GetApplicationRoutesRequest, |
| 44 | URIParams: internal.Params{"app_guid": appGUID}, |
| 45 | ResponseBody: resources.Route{}, |
| 46 | AppendToList: func(item interface{}) error { |
| 47 | routes = append(routes, item.(resources.Route)) |
| 48 | return nil |
| 49 | }, |
| 50 | }) |
| 51 | |
| 52 | return routes, warnings, err |
| 53 | } |
| 54 | |
| 55 | func (client Client) GetRouteDestinations(routeGUID string) ([]resources.RouteDestination, Warnings, error) { |
| 56 | var responseBody struct { |
nothing calls this directly
no test coverage detected