From 570f27c39c8211fb145c3df69e973e55e22dc384 Mon Sep 17 00:00:00 2001 From: Shubham-md786 Date: Sun, 28 Jan 2024 09:17:28 +0530 Subject: [PATCH] fix: zoro routes --- src/routes/anime/zoro.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/anime/zoro.ts b/src/routes/anime/zoro.ts index 299dc347..78f098be 100644 --- a/src/routes/anime/zoro.ts +++ b/src/routes/anime/zoro.ts @@ -43,7 +43,7 @@ const routes = async (fastify: FastifyInstance, options: RegisterOptions) => { reply.status(200).send(res); }); - fastify.get('most-popular', async (request: FastifyRequest, reply: FastifyReply) => { + fastify.get('/most-popular', async (request: FastifyRequest, reply: FastifyReply) => { const page = (request.query as { page: number }).page; const res = await zoro.fetchMostPopular(page); @@ -78,7 +78,7 @@ const routes = async (fastify: FastifyInstance, options: RegisterOptions) => { reply.status(200).send(res); }); - fastify.get('top-upcoming', async (request: FastifyRequest, reply: FastifyReply) => { + fastify.get('/top-upcoming', async (request: FastifyRequest, reply: FastifyReply) => { const page = (request.query as { page: number }).page; const res = await zoro.fetchTopUpcoming(page);