changed some files to ts

This commit is contained in:
2025-11-29 17:41:30 +01:00
parent 91526e1755
commit 655ab9c987
13 changed files with 624 additions and 168 deletions

14
src/anime/anime.routes.ts Normal file
View File

@@ -0,0 +1,14 @@
import { FastifyInstance } from 'fastify';
import * as controller from './anime.controller';
async function animeRoutes(fastify: FastifyInstance) {
fastify.get('/anime/:id', controller.getAnime);
fastify.get('/trending', controller.getTrending);
fastify.get('/top-airing', controller.getTopAiring);
fastify.get('/search', controller.search);
fastify.get('/extensions', controller.getExtensions);
fastify.get('/extension/:name/settings', controller.getExtensionSettings);
fastify.get('/watch/stream', controller.getWatchStream);
}
export default animeRoutes;