💥 breaking: upgrade Elysia to v1.4 and update codebase accordingly

This commit is contained in:
2026-03-07 13:41:13 +07:00
parent c992314cf1
commit 0b786206e4
15 changed files with 352 additions and 287 deletions

View File

@ -0,0 +1 @@
export const baseURL = "https://api.jikan.moe/v4";

View File

@ -0,0 +1,8 @@
import { baseURL } from "./baseUrl";
export const getEpisodeReferenceAPI = (malId: number) => {
return {
baseURL,
getEpisodeList: `/anime/${malId}/episodes`,
};
};

View File

@ -0,0 +1,9 @@
import { baseURL } from "./baseUrl";
export const getContentReferenceAPI = (malId: number) => {
return {
baseURL,
getMediaFullInfo: `/anime/${malId}/full`,
getMediaCharactersWithVA: `/anime/${malId}/characters`,
};
};

View File

@ -0,0 +1,8 @@
import { baseURL } from "./baseUrl";
export const getPeopleAPI = (malId: number) => {
return {
baseURL,
getPeopleInfo: `/people/${malId}`,
};
};