@@ -19,11 +19,11 @@ import (
1919)
2020
2121const (
22- SpacesPath = "/v3/spaces"
23- SpacePath = "/v3/spaces/{guid}"
24- RoutesForSpacePath = "/v3/spaces/{guid}/routes"
25- SpaceFeaturePath = "/v3/spaces/{guid}/features/{name}"
26- IsolationSegmentsForSpacePath = "/v3/spaces/{guid}/relationships/isolation_segment"
22+ SpacesPath = "/v3/spaces"
23+ SpacePath = "/v3/spaces/{guid}"
24+ RoutesForSpacePath = "/v3/spaces/{guid}/routes"
25+ SpaceFeaturePath = "/v3/spaces/{guid}/features/{name}"
26+ IsolationSegmentForSpacePath = "/v3/spaces/{guid}/relationships/isolation_segment"
2727)
2828
2929//counterfeiter:generate -o fake -fake-name CFSpaceRepository . CFSpaceRepository
@@ -200,8 +200,8 @@ func (h *Space) deleteUnmappedRoutes(r *http.Request) (*routing.Response, error)
200200 return routing .NewResponse (http .StatusAccepted ).WithHeader ("Location" , presenter .JobURLForRedirects (spaceGUID , presenter .SpaceDeleteUnmappedRoutesOperation , h .apiBaseURL )), nil
201201}
202202
203- func (h * Space ) getIsolationSegments (r * http.Request ) (* routing.Response , error ) {
204- return routing .NewResponse (http .StatusOK ).WithBody (presenter . ForIsolationSegment ( h . apiBaseURL ) ), nil
203+ func (h * Space ) getIsolationSegment (r * http.Request ) (* routing.Response , error ) {
204+ return routing .NewResponse (http .StatusOK ).WithBody (struct {}{} ), nil
205205}
206206
207207func (h * Space ) getSpaceFeature (r * http.Request ) (* routing.Response , error ) {
@@ -231,7 +231,7 @@ func (h *Space) AuthenticatedRoutes() []routing.Route {
231231 {Method : "DELETE" , Pattern : SpacePath , Handler : h .delete },
232232 {Method : "GET" , Pattern : SpacePath , Handler : h .get },
233233 {Method : "DELETE" , Pattern : RoutesForSpacePath , Handler : h .deleteUnmappedRoutes },
234- {Method : "GET" , Pattern : IsolationSegmentsForSpacePath , Handler : h .getIsolationSegments },
234+ {Method : "GET" , Pattern : IsolationSegmentForSpacePath , Handler : h .getIsolationSegment },
235235 {Method : "GET" , Pattern : SpaceFeaturePath , Handler : h .getSpaceFeature },
236236 }
237237}
0 commit comments