Make the berry endpoint use GET instead of POST

This commit is contained in:
2025-12-17 19:30:16 -07:00
parent 10389d8da9
commit 3bea2007e7
2 changed files with 3 additions and 3 deletions

View File

@@ -21,8 +21,8 @@ export async function handler (context: Context, type: number) {
if (type == 0) {
request_value = 'highScore'
} else if (type == 1) {
const body = context.body as { type: number }
switch (body.type) {
let berryQuery = context.query.berry ? parseInt(context.query.berry, 10) : 0
switch (berryQuery) {
case 1:
request_value = 'totalPoisonBerries'
break