mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
fix getByTypeAndName method for directory structure
This commit is contained in:
@@ -416,11 +416,10 @@ public class RepositoryResource
|
||||
* @return the {@link Repository} with the specified type and name
|
||||
*/
|
||||
@GET
|
||||
@Path("{type}/{name}")
|
||||
@Path("{type: [a-z]+}/{name: .*}")
|
||||
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
|
||||
@TypeHint(Repository.class)
|
||||
public Response getByTypeAndName(@Context Request request,
|
||||
@PathParam("type") String type,
|
||||
public Response getByTypeAndName(@PathParam("type") String type,
|
||||
@PathParam("name") String name)
|
||||
{
|
||||
Response response = null;
|
||||
|
||||
Reference in New Issue
Block a user