We are launching a docker version (server version) today so we want to just organize the repo so its easier to navigate.
14 lines
589 B
TypeScript
14 lines
589 B
TypeScript
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('/search/:extension', controller.searchInExtension);
|
|
fastify.get('/watch/stream', controller.getWatchStream);
|
|
}
|
|
|
|
export default animeRoutes; |