Update [releaseId].ts
This commit is contained in:
@@ -19,7 +19,7 @@ interface EpisodeResponse {
|
|||||||
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||||
const { releaseId } = req.query;
|
const { releaseId } = req.query;
|
||||||
const anixartAPI = `https://api.anixart.tv/episode/${releaseId}`;
|
const anixartAPI = `https://api.anixart.tv/episode/${releaseId}`;
|
||||||
const seeleAPI = `https://seele-off.github.io/anixart/extension/api/episode/${releaseId}.json`;
|
const seeleAPI = `https://seeleme.github.io/anixart/extension/api/episode/${releaseId}.json`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const anixartRes = await axios.get<EpisodeResponse>(anixartAPI);
|
const anixartRes = await axios.get<EpisodeResponse>(anixartAPI);
|
||||||
@@ -50,4 +50,4 @@ function modifyData(data: EpisodeResponse): EpisodeResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user