Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9123650
urls.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
912 B
Subscribers
None
urls.py
View Options
# Copyright (C) 2017-2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from
django.http
import
HttpRequest
,
HttpResponse
from
django.shortcuts
import
redirect
,
render
from
django.urls
import
re_path
as
url
# register Web API endpoints
import
swh.web.vault.api_views
# noqa
def
vault_view
(
request
:
HttpRequest
)
->
HttpResponse
:
return
render
(
request
,
"vault-ui.html"
,
{
"heading"
:
"Download archive content from the Vault"
},
)
def
browse_vault_view
(
request
:
HttpRequest
)
->
HttpResponse
:
return
redirect
(
"vault"
)
urlpatterns
=
[
url
(
r"^vault/$"
,
vault_view
,
name
=
"vault"
),
# for backward compatibility
url
(
r"^browse/vault/$"
,
browse_vault_view
,
name
=
"browse-vault"
),
]
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Sat, Jun 21, 5:52 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3366980
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment