Skip to content

Commit

Permalink
feat(anilist): Add perPage parameter to recent episodes (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanAbinaya authored Nov 16, 2023
1 parent 03750a0 commit 0ad441a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/meta/anilist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ const routes = async (fastify: FastifyInstance, options: RegisterOptions) => {
async (request: FastifyRequest, reply: FastifyReply) => {
const provider = (request.query as { provider: 'gogoanime' | 'zoro' }).provider;
const page = (request.query as { page: number }).page;
const perPage = (request.query as { perPage: number }).perPage;

const anilist = generateAnilistMeta(provider);

const res = await anilist.fetchRecentEpisodes(provider, page);
const res = await anilist.fetchRecentEpisodes(provider, page, perPage);

reply.status(200).send(res);
},
Expand Down

0 comments on commit 0ad441a

Please sign in to comment.