Skip to content

Commit e7170fb

Browse files
committed
Fix listing archive with sub-folders
1 parent 174074f commit e7170fb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tools/checkNewSubscription/wrangler.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name = "lms-forum-subscription-checker"
22
compatibility_date = "2025-10-16"
33
compatibility_flags = ["nodejs_compat"]
44
main = "src/index.ts"
5+
workers_dev = false
6+
preview_urls = false
57

68
[[send_email]]
79
name = "EMAIL"

tools/downloads-handler/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Hono, Context } from 'hono'
22

3+
const DEBUG = false
34
const urlPrefix = 'downloads/listing/archive';
45

56
interface Env {
@@ -25,9 +26,11 @@ const corsHeaders: Record<string, string> = {
2526

2627
const app = new Hono()
2728

28-
app.on('GET', [`/${urlPrefix}/:prefix`, '/:prefix'], async (c: Context, ) => {
29+
app.get(`/${urlPrefix}/:prefix{.*}`, async (c: Context, ) => {
2930
const prefix = c.req.param('prefix');
3031

32+
DEBUG && console.log(prefix)
33+
3134
if (!prefix) {
3235
return Response.redirect('https://lyrion.org/getting-started')
3336
}

0 commit comments

Comments
 (0)