diff --git a/api/src/elysia.ts b/api/src/base.ts similarity index 100% rename from api/src/elysia.ts rename to api/src/base.ts diff --git a/api/src/controllers/images.ts b/api/src/controllers/images.ts index 147233f0..bb78e4e5 100644 --- a/api/src/controllers/images.ts +++ b/api/src/controllers/images.ts @@ -15,7 +15,7 @@ import { KError } from "~/models/error"; import { bubble } from "~/models/examples"; import { AcceptLanguage, isUuid, processLanguages } from "~/models/utils"; import { imageDir } from "./seed/images"; -import { prefix } from "~/elysia"; +import { prefix } from "~/base"; function getRedirectToImageHandler({ filter, diff --git a/api/src/controllers/shows/collections.ts b/api/src/controllers/shows/collections.ts index 2e1bc18c..f80d85c9 100644 --- a/api/src/controllers/shows/collections.ts +++ b/api/src/controllers/shows/collections.ts @@ -22,7 +22,7 @@ import { } from "~/models/utils"; import { desc } from "~/models/utils/descriptions"; import { getShows, showFilters, showSort } from "./logic"; -import { prefix } from "~/elysia"; +import { prefix } from "~/base"; export const collections = new Elysia({ prefix: "/collections", diff --git a/api/src/controllers/shows/movies.ts b/api/src/controllers/shows/movies.ts index bc6fef82..8ac45bb0 100644 --- a/api/src/controllers/shows/movies.ts +++ b/api/src/controllers/shows/movies.ts @@ -15,7 +15,7 @@ import { } from "~/models/utils"; import { desc } from "~/models/utils/descriptions"; import { getShows, showFilters, showSort } from "./logic"; -import { prefix } from "~/elysia"; +import { prefix } from "~/base"; export const movies = new Elysia({ prefix: "/movies", tags: ["movies"] }) .model({ diff --git a/api/src/controllers/shows/series.ts b/api/src/controllers/shows/series.ts index dc9bf85d..78057526 100644 --- a/api/src/controllers/shows/series.ts +++ b/api/src/controllers/shows/series.ts @@ -2,7 +2,7 @@ import { and, eq, sql } from "drizzle-orm"; import { Elysia, t } from "elysia"; import { db } from "~/db"; import { shows } from "~/db/schema"; -import { prefix } from "~/elysia"; +import { prefix } from "~/base"; import { KError } from "~/models/error"; import { madeInAbyss } from "~/models/examples"; import { FullSerie, Serie, SerieTranslation } from "~/models/serie"; diff --git a/api/src/controllers/shows/shows.ts b/api/src/controllers/shows/shows.ts index fd3bff63..200b0259 100644 --- a/api/src/controllers/shows/shows.ts +++ b/api/src/controllers/shows/shows.ts @@ -13,7 +13,7 @@ import { } from "~/models/utils"; import { desc } from "~/models/utils/descriptions"; import { getShows, showFilters, showSort } from "./logic"; -import { prefix } from "~/elysia"; +import { prefix } from "~/base"; export const showsH = new Elysia({ prefix: "/shows", tags: ["shows"] }) .model({ diff --git a/api/src/controllers/staff.ts b/api/src/controllers/staff.ts index b5d95e49..2ecfa64c 100644 --- a/api/src/controllers/staff.ts +++ b/api/src/controllers/staff.ts @@ -22,7 +22,7 @@ import { } from "~/models/utils"; import { desc } from "~/models/utils/descriptions"; import { showFilters, showSort } from "./shows/logic"; -import { prefix } from "~/elysia"; +import { prefix } from "~/base"; const staffSort = Sort( { diff --git a/api/src/controllers/studios.ts b/api/src/controllers/studios.ts index 8e0667c8..4fd3faae 100644 --- a/api/src/controllers/studios.ts +++ b/api/src/controllers/studios.ts @@ -32,7 +32,7 @@ import { } from "~/models/utils"; import { desc } from "~/models/utils/descriptions"; import { getShows, showFilters, showSort } from "./shows/logic"; -import { prefix } from "~/elysia"; +import { prefix } from "~/base"; const studioSort = Sort( { diff --git a/api/src/index.ts b/api/src/index.ts index 2b34a526..4f1c10ef 100644 --- a/api/src/index.ts +++ b/api/src/index.ts @@ -2,7 +2,7 @@ import jwt from "@elysiajs/jwt"; import { swagger } from "@elysiajs/swagger"; import { processImages } from "./controllers/seed/images"; import { migrate } from "./db"; -import { app } from "./elysia"; +import { app } from "./base"; import { comment } from "./utils"; await migrate(); diff --git a/api/tests/helpers/index.ts b/api/tests/helpers/index.ts index d7dd1617..e2898d52 100644 --- a/api/tests/helpers/index.ts +++ b/api/tests/helpers/index.ts @@ -4,4 +4,4 @@ export * from "./studio-helper"; export * from "./staff-helper"; export * from "./videos-helper"; -export * from "~/elysia"; +export * from "~/base"; diff --git a/api/tests/helpers/movies-helper.ts b/api/tests/helpers/movies-helper.ts index 8ba77603..c7ddba29 100644 --- a/api/tests/helpers/movies-helper.ts +++ b/api/tests/helpers/movies-helper.ts @@ -1,5 +1,5 @@ import { buildUrl } from "tests/utils"; -import { app } from "~/elysia"; +import { app } from "~/base"; import type { SeedMovie } from "~/models/movie"; export const getMovie = async ( diff --git a/api/tests/helpers/series-helper.ts b/api/tests/helpers/series-helper.ts index b180891b..776c09eb 100644 --- a/api/tests/helpers/series-helper.ts +++ b/api/tests/helpers/series-helper.ts @@ -1,5 +1,5 @@ import { buildUrl } from "tests/utils"; -import { app } from "~/elysia"; +import { app } from "~/base"; import type { SeedSerie } from "~/models/serie"; export const createSerie = async (serie: SeedSerie) => { diff --git a/api/tests/helpers/staff-helper.ts b/api/tests/helpers/staff-helper.ts index 4c790de1..a4a4b99b 100644 --- a/api/tests/helpers/staff-helper.ts +++ b/api/tests/helpers/staff-helper.ts @@ -1,5 +1,5 @@ import { buildUrl } from "tests/utils"; -import { app } from "~/elysia"; +import { app } from "~/base"; export const getStaff = async (id: string, query: {}) => { const resp = await app.handle( diff --git a/api/tests/helpers/studio-helper.ts b/api/tests/helpers/studio-helper.ts index fb9fe255..bc6ccfe8 100644 --- a/api/tests/helpers/studio-helper.ts +++ b/api/tests/helpers/studio-helper.ts @@ -1,5 +1,5 @@ import { buildUrl } from "tests/utils"; -import { app } from "~/elysia"; +import { app } from "~/base"; export const getStudio = async ( id: string, diff --git a/api/tests/helpers/videos-helper.ts b/api/tests/helpers/videos-helper.ts index 5dd0bb70..74232b7c 100644 --- a/api/tests/helpers/videos-helper.ts +++ b/api/tests/helpers/videos-helper.ts @@ -1,5 +1,5 @@ import { buildUrl } from "tests/utils"; -import { app } from "~/elysia"; +import { app } from "~/base"; import type { SeedVideo } from "~/models/video"; export const createVideo = async (video: SeedVideo | SeedVideo[]) => {