Changeset View
Changeset View
Standalone View
Standalone View
swh/web/browse/views/snapshot.py
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | def snapshot_directory_browse(request, snapshot_id): | ||||
in a snapshot. | in a snapshot. | ||||
The URL that points to it is :http:get:`/browse/snapshot/(snapshot_id)/directory/` | The URL that points to it is :http:get:`/browse/snapshot/(snapshot_id)/directory/` | ||||
""" | """ | ||||
return browse_snapshot_directory( | return browse_snapshot_directory( | ||||
request, | request, | ||||
snapshot_id=snapshot_id, | snapshot_id=snapshot_id, | ||||
path=request.GET.get("path"), | path=request.GET.get("path"), | ||||
origin_url=request.GET.get("origin"), | origin_url=request.GET.get("origin_url"), | ||||
) | ) | ||||
@browse_route( | @browse_route( | ||||
r"snapshot/(?P<snapshot_id>[0-9a-f]+)/directory/(?P<path>.+)/", | r"snapshot/(?P<snapshot_id>[0-9a-f]+)/directory/(?P<path>.+)/", | ||||
view_name="browse-snapshot-directory-legacy", | view_name="browse-snapshot-directory-legacy", | ||||
checksum_args=["snapshot_id"], | checksum_args=["snapshot_id"], | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |