Skip to content

Commit

Permalink
fix: zoro routes
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham7101 committed Jan 28, 2024
1 parent d4b5f6e commit 570f27c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/anime/zoro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 570f27c

Please sign in to comment.