Oh forgot about this
This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -154,6 +154,11 @@ app.get(
|
||||
description:
|
||||
'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`.'
|
||||
})
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import { Context } from 'elysia'
|
||||
export const handler = async (handler: Context) => {
|
||||
const id = handler.query.id
|
||||
const page = handler.query.page
|
||||
const mode = handler.query.mode
|
||||
|
||||
const request = await axios.post(
|
||||
'https://www.boomlings.com/database/getGJCommentHistory.php',
|
||||
@@ -13,7 +14,7 @@ export const handler = async (handler: Context) => {
|
||||
binaryVersion: '45',
|
||||
page: page ?? '0',
|
||||
secret: 'Wmfd2893gb7',
|
||||
mode: '1',
|
||||
mode: mode ? (mode == 'recent' ? '0' : '1') : '0', //Don't worry about it
|
||||
userID: id
|
||||
}),
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user