mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +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
|
* @return the {@link Repository} with the specified type and name
|
||||||
*/
|
*/
|
||||||
@GET
|
@GET
|
||||||
@Path("{type}/{name}")
|
@Path("{type: [a-z]+}/{name: .*}")
|
||||||
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
|
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
|
||||||
@TypeHint(Repository.class)
|
@TypeHint(Repository.class)
|
||||||
public Response getByTypeAndName(@Context Request request,
|
public Response getByTypeAndName(@PathParam("type") String type,
|
||||||
@PathParam("type") String type,
|
|
||||||
@PathParam("name") String name)
|
@PathParam("name") String name)
|
||||||
{
|
{
|
||||||
Response response = null;
|
Response response = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user