Cleanup response properly (#1258)

This commit is contained in:
Zoe Roux
2026-01-05 12:51:39 +01:00
committed by GitHub
parent a76c8858a0
commit 6044f88571
16 changed files with 72 additions and 133 deletions
+3 -6
View File
@@ -374,12 +374,9 @@ export const historyH = new Elysia({ tags: ["profiles"] })
detail: {
description: "List your watch history (episodes/movies seen)",
},
headers: t.Object(
{
"accept-language": AcceptLanguage({ autoFallback: true }),
},
{ additionalProperties: true },
),
headers: t.Object({
"accept-language": AcceptLanguage({ autoFallback: true }),
}),
response: {
200: Page(Entry),
},
+3 -6
View File
@@ -130,12 +130,9 @@ export const nextup = new Elysia({ tags: ["profiles"] })
detail: {
description: "",
},
headers: t.Object(
{
"accept-language": AcceptLanguage({ autoFallback: true }),
},
{ additionalProperties: true },
),
headers: t.Object({
"accept-language": AcceptLanguage({ autoFallback: true }),
}),
response: {
200: Page(Entry),
},
+3 -6
View File
@@ -165,12 +165,9 @@ export const watchlistH = new Elysia({ tags: ["profiles"] })
},
{
detail: { description: "Get all movies/series in your watchlist" },
headers: t.Object(
{
"accept-language": AcceptLanguage({ autoFallback: true }),
},
{ additionalProperties: true },
),
headers: t.Object({
"accept-language": AcceptLanguage({ autoFallback: true }),
}),
response: {
200: Page(
t.Union([