26.1 fix
This commit is contained in:
1 file changed
+64
-1
+64
-1
@@ -1,4 +1,4 @@
|
|||||||
import { Elysia, t } from 'elysia'
|
import { Elysia, redirect, t } from 'elysia'
|
||||||
import { cors } from '@elysiajs/cors'
|
import { cors } from '@elysiajs/cors'
|
||||||
import { ElysiaWS } from 'elysia/dist/ws'
|
import { ElysiaWS } from 'elysia/dist/ws'
|
||||||
import { getDatabaseConnection, jsonResponse } from './lib/util'
|
import { getDatabaseConnection, jsonResponse } from './lib/util'
|
||||||
@@ -1219,6 +1219,69 @@ app.get('/berrydash/latest-version', berryDashLatestVersionGetHandler, {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
app.get(
|
||||||
|
'/berrydash/leaderboards/score',
|
||||||
|
({ query, redirect }) => {
|
||||||
|
return redirect(
|
||||||
|
`/api/berrydash/leaderboard/score?${new URLSearchParams(
|
||||||
|
query
|
||||||
|
).toString()}`
|
||||||
|
)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
detail: { hide: true }
|
||||||
|
}
|
||||||
|
)
|
||||||
|
app.get(
|
||||||
|
'/berrydash/leaderboards/berry',
|
||||||
|
({ query, redirect }) => {
|
||||||
|
return redirect(
|
||||||
|
`/api/berrydash/leaderboard/berry?${new URLSearchParams(
|
||||||
|
query
|
||||||
|
).toString()}`
|
||||||
|
)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
detail: { hide: true }
|
||||||
|
}
|
||||||
|
)
|
||||||
|
app.get(
|
||||||
|
'/berrydash/leaderboards/coin',
|
||||||
|
({ query, redirect }) => {
|
||||||
|
return redirect(
|
||||||
|
`/api/berrydash/leaderboard/coin?${new URLSearchParams(query).toString()}`
|
||||||
|
)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
detail: { hide: true }
|
||||||
|
}
|
||||||
|
)
|
||||||
|
app.get(
|
||||||
|
'/berrydash/leaderboards/legacy',
|
||||||
|
({ query, redirect }) => {
|
||||||
|
return redirect(
|
||||||
|
`/api/berrydash/leaderboard/legacy?${new URLSearchParams(
|
||||||
|
query
|
||||||
|
).toString()}`
|
||||||
|
)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
detail: { hide: true }
|
||||||
|
}
|
||||||
|
)
|
||||||
|
app.get(
|
||||||
|
'/berrydash/leaderboards/total',
|
||||||
|
({ query, redirect }) => {
|
||||||
|
return redirect(
|
||||||
|
`/api/berrydash/leaderboard/total?${new URLSearchParams(
|
||||||
|
query
|
||||||
|
).toString()}`
|
||||||
|
)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
detail: { hide: true }
|
||||||
|
}
|
||||||
|
)
|
||||||
app.get(
|
app.get(
|
||||||
'/berrydash/leaderboard/score',
|
'/berrydash/leaderboard/score',
|
||||||
context => berrydashLeaderboardGetHandler(context, 0),
|
context => berrydashLeaderboardGetHandler(context, 0),
|
||||||
|
|||||||
Reference in new issue
Block a user