import { FastifyInstance } from 'fastify'; import * as controller from './anime.controller'; async function animeRoutes(fastify: FastifyInstance) { fastify.get('/anime/:id', controller.getAnime); fastify.get('/anime/:id/:episodes', controller.getAnimeEpisodes); fastify.get('/trending', controller.getTrending); fastify.get('/top-airing', controller.getTopAiring); fastify.get('/search', controller.search); fastify.get('/watch/stream', controller.getWatchStream); } export default animeRoutes;