Fix swagger's href

This commit is contained in:
Zoe Roux 2025-07-19 15:53:07 +02:00
parent 5379536db2
commit fcac650322
No known key found for this signature in database
9 changed files with 15 additions and 18 deletions

View File

@ -166,7 +166,7 @@ export const imagesH = new Elysia({ tags: ["images"] })
response: { response: {
302: t.Void({ 302: t.Void({
description: 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: { 404: {
...KError, ...KError,

View File

@ -2,9 +2,9 @@ import { and, eq, sql } from "drizzle-orm";
import Elysia, { t } from "elysia"; import Elysia, { t } from "elysia";
import { auth } from "~/auth"; import { auth } from "~/auth";
import { db } from "~/db"; import { db } from "~/db";
import { entries, entryTranslations } from "~/db/schema"; import { entries } from "~/db/schema";
import { watchlist } from "~/db/schema/watchlist"; import { watchlist } from "~/db/schema/watchlist";
import { getColumns, sqlarr } from "~/db/utils"; import { getColumns } from "~/db/utils";
import { Entry } from "~/models/entry"; import { Entry } from "~/models/entry";
import { import {
AcceptLanguage, AcceptLanguage,

View File

@ -130,7 +130,7 @@ export const collections = new Elysia({
response: { response: {
302: t.Void({ 302: t.Void({
description: 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: { 404: {
...KError, ...KError,

View File

@ -2,7 +2,6 @@ import { and, eq, exists, ne, type SQL, sql } from "drizzle-orm";
import { db } from "~/db"; import { db } from "~/db";
import { import {
entries, entries,
entryTranslations,
entryVideoJoin, entryVideoJoin,
profiles, profiles,
showStudioJoin, showStudioJoin,
@ -36,7 +35,12 @@ import {
} from "~/models/utils"; } from "~/models/utils";
import type { EmbeddedVideo } from "~/models/video"; import type { EmbeddedVideo } from "~/models/video";
import { WatchlistStatus } from "~/models/watchlist"; import { WatchlistStatus } from "~/models/watchlist";
import { entryProgressQ, entryVideosQ, getEntryTransQ, mapProgress } from "../entries"; import {
entryProgressQ,
entryVideosQ,
getEntryTransQ,
mapProgress,
} from "../entries";
export const watchStatusQ = db export const watchStatusQ = db
.select({ .select({

View File

@ -120,7 +120,7 @@ export const movies = new Elysia({ prefix: "/movies", tags: ["movies"] })
response: { response: {
302: t.Void({ 302: t.Void({
description: 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: { 404: {
...KError, ...KError,

View File

@ -123,7 +123,7 @@ export const series = new Elysia({ prefix: "/series", tags: ["series"] })
response: { response: {
302: t.Void({ 302: t.Void({
description: 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: { 404: {
...KError, ...KError,

View File

@ -175,7 +175,7 @@ export const staffH = new Elysia({ tags: ["staff"] })
response: { response: {
302: t.Void({ 302: t.Void({
description: 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: { 404: {
...KError, ...KError,

View File

@ -215,7 +215,7 @@ export const studiosH = new Elysia({ prefix: "/studios", tags: ["studios"] })
response: { response: {
302: t.Void({ 302: t.Void({
description: 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: { 404: {
...KError, ...KError,

View File

@ -9,20 +9,13 @@ import {
min, min,
notExists, notExists,
or, or,
type SQL,
sql, sql,
} from "drizzle-orm"; } from "drizzle-orm";
import { alias } from "drizzle-orm/pg-core"; import { alias } from "drizzle-orm/pg-core";
import { Elysia, t } from "elysia"; import { Elysia, t } from "elysia";
import { auth } from "~/auth"; import { auth } from "~/auth";
import { db, type Transaction } from "~/db"; import { db, type Transaction } from "~/db";
import { import { entries, entryVideoJoin, shows, videos } from "~/db/schema";
entries,
entryTranslations,
entryVideoJoin,
shows,
videos,
} from "~/db/schema";
import { import {
coalesce, coalesce,
conflictUpdateAllExcept, conflictUpdateAllExcept,