diff options
| author | Ritesh Ghosh <[email protected]> | 2023-08-07 14:54:22 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-08-07 14:54:22 +0530 |
| commit | 10e46b1002dcbbed5202936f1028fae550d9f765 (patch) | |
| tree | 8ad0d9ac7c69f8f881613f409535506dac8f2677 /src | |
| parent | e1b37a5b5ee16632e6b32e72e65f6420492e27bc (diff) | |
| download | aniwatch-api-10e46b1002dcbbed5202936f1028fae550d9f765.tar.xz aniwatch-api-10e46b1002dcbbed5202936f1028fae550d9f765.zip | |
feat: added controller request handler types
Diffstat (limited to 'src')
| -rw-r--r-- | src/models/controllers/animeAboutInfo.ts | 3 | ||||
| -rw-r--r-- | src/models/controllers/animeCategory.ts | 7 | ||||
| -rw-r--r-- | src/models/controllers/animeGenre.ts | 7 | ||||
| -rw-r--r-- | src/models/controllers/animeSearch.ts | 4 | ||||
| -rw-r--r-- | src/models/controllers/index.ts | 16 |
5 files changed, 37 insertions, 0 deletions
diff --git a/src/models/controllers/animeAboutInfo.ts b/src/models/controllers/animeAboutInfo.ts new file mode 100644 index 0000000..aa65efd --- /dev/null +++ b/src/models/controllers/animeAboutInfo.ts @@ -0,0 +1,3 @@ +export type AnimeAboutInfoQueryParams = { + id?: string; +}; diff --git a/src/models/controllers/animeCategory.ts b/src/models/controllers/animeCategory.ts new file mode 100644 index 0000000..7de0876 --- /dev/null +++ b/src/models/controllers/animeCategory.ts @@ -0,0 +1,7 @@ +export type CategoryAnimePathParams = { + category?: string; +}; + +export type CategoryAnimeQueryParams = { + page?: string; +}; diff --git a/src/models/controllers/animeGenre.ts b/src/models/controllers/animeGenre.ts new file mode 100644 index 0000000..038d15e --- /dev/null +++ b/src/models/controllers/animeGenre.ts @@ -0,0 +1,7 @@ +export type GenreAnimePathParams = { + name?: string; +}; + +export type GenreAnimeQueryParams = { + page?: string; +}; diff --git a/src/models/controllers/animeSearch.ts b/src/models/controllers/animeSearch.ts new file mode 100644 index 0000000..20f4680 --- /dev/null +++ b/src/models/controllers/animeSearch.ts @@ -0,0 +1,4 @@ +export type AnimeSearchQueryParams = { + q?: string; + page?: string; +}; diff --git a/src/models/controllers/index.ts b/src/models/controllers/index.ts new file mode 100644 index 0000000..fe8e801 --- /dev/null +++ b/src/models/controllers/index.ts @@ -0,0 +1,16 @@ +import { AnimeSearchQueryParams } from "./animeSearch"; +import { AnimeAboutInfoQueryParams } from "./animeAboutInfo"; +import { GenreAnimePathParams, GenreAnimeQueryParams } from "./animeGenre"; +import { + CategoryAnimePathParams, + CategoryAnimeQueryParams, +} from "./animeCategory"; + +export { + GenreAnimePathParams, + GenreAnimeQueryParams, + AnimeSearchQueryParams, + CategoryAnimePathParams, + CategoryAnimeQueryParams, + AnimeAboutInfoQueryParams, +}; |
