chore: cleanup old endpoint

This commit is contained in:
2026-03-22 12:39:36 +07:00 Unverified
parent cf5fbf3ae2
commit da2a273a12
-5
View File
@@ -63,10 +63,6 @@ export function card(app: App) {
.derive(() => ({ .derive(() => ({
log: createLogger(), log: createLogger(),
})) }))
// FE still uses this endpoint for some reason(aka lazy to change)
.head("/genshin/:uid/:char/preload", async ({ params: { uid } }) =>
redirect(`/genshin/${uid}/preload`),
)
.head( .head(
"/genshin/:uid/preload", "/genshin/:uid/preload",
async ({ params: { uid }, log }) => { async ({ params: { uid }, log }) => {
@@ -95,7 +91,6 @@ export function card(app: App) {
{ {
params: t.Object({ params: t.Object({
uid: t.String(), uid: t.String(),
char: t.Number(),
}), }),
detail: { detail: {
tags: ["Card"], tags: ["Card"],