From cef9468920edf803bfa1dc497fa709c9b081623e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=BC=E3=83=BC=E3=83=AC?= Date: Thu, 8 May 2025 20:49:35 +0500 Subject: [PATCH] Update index.js --- api/v1/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/v1/index.js b/api/v1/index.js index b9d6a65..b8db868 100644 --- a/api/v1/index.js +++ b/api/v1/index.js @@ -48,10 +48,12 @@ app.get('/api/profile/:profileId', async (req, res) => { }); // Эндпоинт для получения информации об эпизоде (Новый эндпоинт) -app.get('/api/episode/:releaseId', async (req, res) => { - const { releaseId } = req.params; - const { token } = req.query; // Извлекаем token из query-параметров +app.get('/api/episode/:releaseId/:typeId', async (req, res) => { + const { releaseId, typeId } = req.params; + const { token } = req.query; + try { + // Пока просто заглушка — можешь потом доработать обработку typeId const data = await getEpisodeFromAnixart(releaseId, token); res.json(data); } catch (error) {