diff options
| author | Ritesh Ghosh <[email protected]> | 2024-01-19 19:55:06 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2024-01-19 19:55:06 +0530 |
| commit | f4c276134ac45050beecb7d0078abd68a142bfec (patch) | |
| tree | 6faa0387fb139da7fc86cce566b98bad546e5053 /src/controllers | |
| parent | 20b788b3ce53f46301a31e562b0cdb3f63033d51 (diff) | |
| download | aniwatch-api-f4c276134ac45050beecb7d0078abd68a142bfec.tar.xz aniwatch-api-f4c276134ac45050beecb7d0078abd68a142bfec.zip | |
refactor: `types` dir import
Diffstat (limited to 'src/controllers')
| -rw-r--r-- | src/controllers/animeAboutInfo.controller.ts | 2 | ||||
| -rw-r--r-- | src/controllers/animeCategory.controller.ts | 4 | ||||
| -rw-r--r-- | src/controllers/animeEpisodeSrcs.controller.ts | 4 | ||||
| -rw-r--r-- | src/controllers/animeEpisodes.controller.ts | 2 | ||||
| -rw-r--r-- | src/controllers/animeGenre.controller.ts | 2 | ||||
| -rw-r--r-- | src/controllers/animeProducer.controller.ts | 2 | ||||
| -rw-r--r-- | src/controllers/animeSearch.controller.ts | 2 | ||||
| -rw-r--r-- | src/controllers/animeSearchSuggestion.controller.ts | 2 | ||||
| -rw-r--r-- | src/controllers/episodeServers.controller.ts | 2 | ||||
| -rw-r--r-- | src/controllers/estimatedSchedule.controller.ts | 2 |
10 files changed, 12 insertions, 12 deletions
diff --git a/src/controllers/animeAboutInfo.controller.ts b/src/controllers/animeAboutInfo.controller.ts index ab94cbd..6d50b50 100644 --- a/src/controllers/animeAboutInfo.controller.ts +++ b/src/controllers/animeAboutInfo.controller.ts @@ -1,7 +1,7 @@ import createHttpError from "http-errors"; import { type RequestHandler } from "express"; import { scrapeAnimeAboutInfo } from "../parsers/index.js"; -import { type AnimeAboutInfoQueryParams } from "../models/controllers/index.js"; +import { type AnimeAboutInfoQueryParams } from "../types/controllers/index.js"; // /anime/info?id=${anime-id} const getAnimeAboutInfo: RequestHandler< diff --git a/src/controllers/animeCategory.controller.ts b/src/controllers/animeCategory.controller.ts index 8b0bfeb..373b8e3 100644 --- a/src/controllers/animeCategory.controller.ts +++ b/src/controllers/animeCategory.controller.ts @@ -1,11 +1,11 @@ import createHttpError from "http-errors"; import type { RequestHandler } from "express"; -import type { AnimeCategories } from "../models/anime.js"; +import type { AnimeCategories } from "../types/anime.js"; import { scrapeAnimeCategory } from "../parsers/index.js"; import type { CategoryAnimePathParams, CategoryAnimeQueryParams, -} from "../models/controllers/index.js"; +} from "../types/controllers/index.js"; // /anime/:category?page=${page} const getAnimeCategory: RequestHandler< diff --git a/src/controllers/animeEpisodeSrcs.controller.ts b/src/controllers/animeEpisodeSrcs.controller.ts index 75a0290..6190ce5 100644 --- a/src/controllers/animeEpisodeSrcs.controller.ts +++ b/src/controllers/animeEpisodeSrcs.controller.ts @@ -4,8 +4,8 @@ import { type RequestHandler } from "express"; import { type CheerioAPI, load } from "cheerio"; import { scrapeAnimeEpisodeSources } from "../parsers/index.js"; import { USER_AGENT_HEADER, SRC_BASE_URL } from "../utils/constants.js"; -import { type AnimeServers, Servers } from "../models/anime.js"; -import { type AnimeEpisodeSrcsQueryParams } from "../models/controllers/index.js"; +import { type AnimeServers, Servers } from "../types/anime.js"; +import { type AnimeEpisodeSrcsQueryParams } from "../types/controllers/index.js"; type AnilistID = number | null; type MalID = number | null; diff --git a/src/controllers/animeEpisodes.controller.ts b/src/controllers/animeEpisodes.controller.ts index 40ee728..cf815f5 100644 --- a/src/controllers/animeEpisodes.controller.ts +++ b/src/controllers/animeEpisodes.controller.ts @@ -1,7 +1,7 @@ import createHttpError from "http-errors"; import { type RequestHandler } from "express"; import { scrapeAnimeEpisodes } from "../parsers/index.js"; -import { type AnimeEpisodePathParams } from "../models/controllers/index.js"; +import { type AnimeEpisodePathParams } from "../types/controllers/index.js"; // /anime/episodes/${anime-id} const getAnimeEpisodes: RequestHandler< diff --git a/src/controllers/animeGenre.controller.ts b/src/controllers/animeGenre.controller.ts index a4889ca..486b4c7 100644 --- a/src/controllers/animeGenre.controller.ts +++ b/src/controllers/animeGenre.controller.ts @@ -4,7 +4,7 @@ import { scrapeGenreAnime } from "../parsers/index.js"; import type { GenreAnimePathParams, GenreAnimeQueryParams, -} from "../models/controllers/index.js"; +} from "../types/controllers/index.js"; // /anime/genre/${name}?page=${page} const getGenreAnime: RequestHandler< diff --git a/src/controllers/animeProducer.controller.ts b/src/controllers/animeProducer.controller.ts index 5df38f9..3ebcd8a 100644 --- a/src/controllers/animeProducer.controller.ts +++ b/src/controllers/animeProducer.controller.ts @@ -4,7 +4,7 @@ import { scrapeProducerAnimes } from "../parsers/index.js"; import type { AnimeProducerPathParams, AnimeProducerQueryParams, -} from "../models/controllers/index.js"; +} from "../types/controllers/index.js"; // /anime/producer/${name}?page=${page} const getProducerAnimes: RequestHandler< diff --git a/src/controllers/animeSearch.controller.ts b/src/controllers/animeSearch.controller.ts index 85622d5..c7ec57a 100644 --- a/src/controllers/animeSearch.controller.ts +++ b/src/controllers/animeSearch.controller.ts @@ -1,7 +1,7 @@ import createHttpError from "http-errors"; import { type RequestHandler } from "express"; import { scrapeAnimeSearch } from "../parsers/index.js"; -import { type AnimeSearchQueryParams } from "../models/controllers/index.js"; +import { type AnimeSearchQueryParams } from "../types/controllers/index.js"; // /anime/search?q=${query}&page=${page} const getAnimeSearch: RequestHandler< diff --git a/src/controllers/animeSearchSuggestion.controller.ts b/src/controllers/animeSearchSuggestion.controller.ts index 9dbb0f5..ed8784f 100644 --- a/src/controllers/animeSearchSuggestion.controller.ts +++ b/src/controllers/animeSearchSuggestion.controller.ts @@ -1,7 +1,7 @@ import createHttpError from "http-errors"; import { type RequestHandler } from "express"; import { scrapeAnimeSearchSuggestion } from "../parsers/index.js"; -import { type AnimeSearchSuggestQueryParams } from "../models/controllers/index.js"; +import { type AnimeSearchSuggestQueryParams } from "../types/controllers/index.js"; // /anime/search/suggest?q=${query} const getAnimeSearchSuggestion: RequestHandler< diff --git a/src/controllers/episodeServers.controller.ts b/src/controllers/episodeServers.controller.ts index ad17ac2..16e1ca5 100644 --- a/src/controllers/episodeServers.controller.ts +++ b/src/controllers/episodeServers.controller.ts @@ -1,7 +1,7 @@ import createHttpError from "http-errors"; import { type RequestHandler } from "express"; import { scrapeEpisodeServers } from "../parsers/index.js"; -import { type EpisodeServersQueryParams } from "../models/controllers/index.js"; +import { type EpisodeServersQueryParams } from "../types/controllers/index.js"; // /anime/servers?episodeId=${id} const getEpisodeServers: RequestHandler< diff --git a/src/controllers/estimatedSchedule.controller.ts b/src/controllers/estimatedSchedule.controller.ts index bead83e..fef2516 100644 --- a/src/controllers/estimatedSchedule.controller.ts +++ b/src/controllers/estimatedSchedule.controller.ts @@ -1,7 +1,7 @@ import createHttpError from "http-errors"; import { type RequestHandler } from "express"; import { scrapeEstimatedSchedule } from "../parsers/index.js"; -import { type EstimatedScheduleQueryParams } from "../models/controllers/index.js"; +import { type EstimatedScheduleQueryParams } from "../types/controllers/index.js"; // /anime/schedule?date=${date} const getEstimatedSchedule: RequestHandler< |
