Correct uri for create response

This commit is contained in:
René Pfeuffer
2018-07-05 10:58:26 +02:00
parent e993cebc0d
commit 4bdcb0cae8
2 changed files with 2 additions and 1 deletions

View File

@@ -69,6 +69,6 @@ public class RepositoryCollectionResource {
public Response create(RepositoryDto repositoryDto) throws IOException, RepositoryException {
return adapter.create(repositoryDto,
() -> dtoToRepositoryMapper.map(repositoryDto),
user -> resourceLinks.user().self(user.getName()));
repository -> resourceLinks.repository().self(repository.getNamespace(), repository.getName()));
}
}