Oh forgot about this

This commit is contained in:
Lncvrt committed 2026-02-21 12:32:00 -07:00
1 parent b68588c83c
commit e25177df51
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -154,6 +154,11 @@ app.get(
description: description:
'The page you want to get, starts from `0`. Default is `0`.' 'The page you want to get, starts from `0`. Default is `0`.'
}) })
),
mode: t.Optional(
t.Union([t.Literal('recent'), t.Literal('top')], {
description: 'Default is `recent`.'
})
) )
}) })
} }
+2 -1
View File
@@ -5,6 +5,7 @@ import { Context } from 'elysia'
export const handler = async (handler: Context) => { export const handler = async (handler: Context) => {
const id = handler.query.id const id = handler.query.id
const page = handler.query.page const page = handler.query.page
const mode = handler.query.mode
const request = await axios.post( const request = await axios.post(
'https://www.boomlings.com/database/getGJCommentHistory.php', 'https://www.boomlings.com/database/getGJCommentHistory.php',
@@ -13,7 +14,7 @@ export const handler = async (handler: Context) => {
binaryVersion: '45', binaryVersion: '45',
page: page ?? '0', page: page ?? '0',
secret: 'Wmfd2893gb7', secret: 'Wmfd2893gb7',
mode: '1', mode: mode ? (mode == 'recent' ? '0' : '1') : '0', //Don't worry about it
userID: id userID: id
}), }),
{ {