feature, not a bug

This commit is contained in:
Tejas Panchal
2026-03-01 12:39:28 +05:30
commit a6184c63d4
91 changed files with 6797 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import extractVoiceActor from "../extractors/voiceactor.extractor.js";
export const getVoiceActors = async (req, res) => {
const requestedPage = parseInt(req.query.page) || 1;
const id = req.params.id;
try {
const { totalPages, charactersVoiceActors: data } = await extractVoiceActor(
id,
requestedPage
);
return { currentPage: requestedPage, totalPages, data };
} catch (e) {
console.error(e);
return e;
}
};