mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-23 15:42:28 -04:00
Cleanup response properly (#1258)
This commit is contained in:
@@ -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),
|
||||
},
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
|
||||
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user