Port most of the user related apis.
This commit is contained in:
parent
0e3fe8f3b1
commit
85eb585a85
5 changed files with 461 additions and 11 deletions
|
@ -236,6 +236,7 @@ class Repository(RepositoryParamResource):
|
|||
@require_repo_admin
|
||||
@nickname('deleteRepository')
|
||||
def delete(self, namespace, repository):
|
||||
""" Delete a repository. """
|
||||
model.purge_repository(namespace, repository)
|
||||
log_action('delete_repo', namespace,
|
||||
{'repo': repository, 'namespace': namespace})
|
||||
|
|
Reference in a new issue