Improve this

This commit is contained in:
Lncvrt committed 2026-02-21 12:23:45 -07:00
1 parent 0efb404a01
commit b68588c83c
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -171,9 +171,11 @@ app.get('/comments/level', handler => commentsLevelGetHandler(handler), {
'The page you want to get, starts from `0`. Default is `0`.'
})
),
mode: t.Union([t.Literal('0'), t.Literal('1')], {
description: '0 for top, 1 for recent'
mode: t.Optional(
t.Union([t.Literal('recent'), t.Literal('top')], {
description: 'Default is `recent`.'
})
)
})
})
app.get(
+1 -1
View File
@@ -19,7 +19,7 @@ export const handler = async (handler: Context) => {
page: page ?? '0',
total: '0',
secret: 'Wmfd2893gb7',
mode,
mode: mode ? (mode == 'recent' ? '0' : '1') : '0', //Don't worry about it
levelID: id
}),
{