mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-31 22:57:47 +00:00
[api2] Added magic to repo download info
This commit is contained in:
parent
cfbc413eb4
commit
565e343e8f
@ -303,9 +303,9 @@ class DownloadRepo(APIView):
|
||||
token = get_repo_token_nonnull(repo_id, request.user.username)
|
||||
repo_name = repo.name
|
||||
enc = 1 if repo.encrypted else ''
|
||||
magic = repo.magic if repo.encrypted else ''
|
||||
|
||||
info_json = {
|
||||
'applet_root': ccnet_applet_root,
|
||||
'relay_id': relay_id,
|
||||
'relay_addr': addr,
|
||||
'relay_port': port,
|
||||
@ -314,6 +314,7 @@ class DownloadRepo(APIView):
|
||||
'repo_id': repo_id,
|
||||
'repo_name': repo_name,
|
||||
'encrypted': enc,
|
||||
'magic': magic,
|
||||
}
|
||||
return Response(info_json)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user