Skip to content

Commit 23283dd

Browse files
committed
Fix the archive listing handler path
1 parent ea19225 commit 23283dd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/downloads/listing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ title: Downloads Archive
1717
// get list of objects with given prefix
1818
let releaseData = [];
1919
try {
20-
const response = await fetch('archive-listing/' + prefix);
20+
const response = await fetch('archive/' + prefix);
2121
releaseData = await response.json();
2222
}
2323
catch(e) {

tools/downloads-handler/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const corsHeaders = {
2121
"Access-Control-Max-Age": "86400",
2222
}
2323

24-
const urlPrefix = 'downloads/archive-listing/';
24+
const urlPrefix = 'downloads/listing/archive/';
2525

2626
export default {
2727
async fetch(request, env): Promise<Response> {

tools/downloads-handler/wrangler.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ enabled = true
1010
head_sampling_rate = 1
1111

1212
[[routes]]
13-
pattern="*.lyrion.org/downloads/archive-listing/*"
13+
pattern="*.lyrion.org/downloads/listing/archive/*"
1414
zone_name="lyrion.org"
1515

1616
[[routes]]
17-
pattern="lyrion.org/downloads/archive-listing/*"
17+
pattern="lyrion.org/downloads/listing/archive/*"
1818
zone_name="lyrion.org"
1919

2020
[[r2_buckets]]

0 commit comments

Comments
 (0)