changed some files to ts
This commit is contained in:
14
src/anime/anime.routes.ts
Normal file
14
src/anime/anime.routes.ts
Normal 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;
|
||||
Reference in New Issue
Block a user