Skip to content

Commit b01ffb3

Browse files
committed
Don't require name in POST for /cluster
1 parent cb02702 commit b01ffb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/spotify/reaper/resources/ClusterResource.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import javax.ws.rs.core.Response;
2525
import javax.ws.rs.core.UriInfo;
2626

27-
@Path("/cluster/{name}")
27+
@Path("/cluster")
2828
@Produces(MediaType.APPLICATION_JSON)
2929
public class ClusterResource {
3030

@@ -37,6 +37,7 @@ public ClusterResource(IStorage storage) {
3737
}
3838

3939
@GET
40+
@Path("/{name}")
4041
public Response getCluster(@PathParam("name") String name) {
4142
Cluster cluster = storage.getCluster(name);
4243
return Response.ok().entity(cluster).build();

0 commit comments

Comments
 (0)