mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-31 14:33:50 -04:00
Fix swagger's href
This commit is contained in:
parent
5379536db2
commit
fcac650322
@ -166,7 +166,7 @@ export const imagesH = new Elysia({ tags: ["images"] })
|
||||
response: {
|
||||
302: t.Void({
|
||||
description:
|
||||
"Redirected to the [/images/{id}](#tag/images/GET/images/{id}) route.",
|
||||
"Redirected to the [/images/{id}](#tag/images/get/api/images/{id}) route.",
|
||||
}),
|
||||
404: {
|
||||
...KError,
|
||||
|
@ -2,9 +2,9 @@ import { and, eq, sql } from "drizzle-orm";
|
||||
import Elysia, { t } from "elysia";
|
||||
import { auth } from "~/auth";
|
||||
import { db } from "~/db";
|
||||
import { entries, entryTranslations } from "~/db/schema";
|
||||
import { entries } from "~/db/schema";
|
||||
import { watchlist } from "~/db/schema/watchlist";
|
||||
import { getColumns, sqlarr } from "~/db/utils";
|
||||
import { getColumns } from "~/db/utils";
|
||||
import { Entry } from "~/models/entry";
|
||||
import {
|
||||
AcceptLanguage,
|
||||
|
@ -130,7 +130,7 @@ export const collections = new Elysia({
|
||||
response: {
|
||||
302: t.Void({
|
||||
description:
|
||||
"Redirected to the [/collections/{id}](#tag/collections/GET/collections/{id}) route.",
|
||||
"Redirected to the [/collections/{id}](#tag/collections/get/api/collections/{id}) route.",
|
||||
}),
|
||||
404: {
|
||||
...KError,
|
||||
|
@ -2,7 +2,6 @@ import { and, eq, exists, ne, type SQL, sql } from "drizzle-orm";
|
||||
import { db } from "~/db";
|
||||
import {
|
||||
entries,
|
||||
entryTranslations,
|
||||
entryVideoJoin,
|
||||
profiles,
|
||||
showStudioJoin,
|
||||
@ -36,7 +35,12 @@ import {
|
||||
} from "~/models/utils";
|
||||
import type { EmbeddedVideo } from "~/models/video";
|
||||
import { WatchlistStatus } from "~/models/watchlist";
|
||||
import { entryProgressQ, entryVideosQ, getEntryTransQ, mapProgress } from "../entries";
|
||||
import {
|
||||
entryProgressQ,
|
||||
entryVideosQ,
|
||||
getEntryTransQ,
|
||||
mapProgress,
|
||||
} from "../entries";
|
||||
|
||||
export const watchStatusQ = db
|
||||
.select({
|
||||
|
@ -120,7 +120,7 @@ export const movies = new Elysia({ prefix: "/movies", tags: ["movies"] })
|
||||
response: {
|
||||
302: t.Void({
|
||||
description:
|
||||
"Redirected to the [/movies/{id}](#tag/movies/GET/movies/{id}) route.",
|
||||
"Redirected to the [/movies/{id}](#tag/movies/get/api/movies/{id}) route.",
|
||||
}),
|
||||
404: {
|
||||
...KError,
|
||||
|
@ -123,7 +123,7 @@ export const series = new Elysia({ prefix: "/series", tags: ["series"] })
|
||||
response: {
|
||||
302: t.Void({
|
||||
description:
|
||||
"Redirected to the [/series/{id}](#tag/series/GET/series/{id}) route.",
|
||||
"Redirected to the [/series/{id}](#tag/series/get/api/series/{id}) route.",
|
||||
}),
|
||||
404: {
|
||||
...KError,
|
||||
|
@ -175,7 +175,7 @@ export const staffH = new Elysia({ tags: ["staff"] })
|
||||
response: {
|
||||
302: t.Void({
|
||||
description:
|
||||
"Redirected to the [/staff/{id}](#tag/staff/GET/staff/{id}) route.",
|
||||
"Redirected to the [/staff/{id}](#tag/staff/get/api/staff/{id}) route.",
|
||||
}),
|
||||
404: {
|
||||
...KError,
|
||||
|
@ -215,7 +215,7 @@ export const studiosH = new Elysia({ prefix: "/studios", tags: ["studios"] })
|
||||
response: {
|
||||
302: t.Void({
|
||||
description:
|
||||
"Redirected to the [/studios/{id}](#tag/studios/GET/studios/{id}) route.",
|
||||
"Redirected to the [/studios/{id}](#tag/studios/get/api/studios/{id}) route.",
|
||||
}),
|
||||
404: {
|
||||
...KError,
|
||||
|
@ -9,20 +9,13 @@ import {
|
||||
min,
|
||||
notExists,
|
||||
or,
|
||||
type SQL,
|
||||
sql,
|
||||
} from "drizzle-orm";
|
||||
import { alias } from "drizzle-orm/pg-core";
|
||||
import { Elysia, t } from "elysia";
|
||||
import { auth } from "~/auth";
|
||||
import { db, type Transaction } from "~/db";
|
||||
import {
|
||||
entries,
|
||||
entryTranslations,
|
||||
entryVideoJoin,
|
||||
shows,
|
||||
videos,
|
||||
} from "~/db/schema";
|
||||
import { entries, entryVideoJoin, shows, videos } from "~/db/schema";
|
||||
import {
|
||||
coalesce,
|
||||
conflictUpdateAllExcept,
|
||||
|
Loading…
x
Reference in New Issue
Block a user