Web API for Oblique Strategies.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
303 B

  1. import { FastifyInstance } from 'fastify';
  2. import { CardControllerImpl } from './modules/card';
  3. export const addRoutes = (server: FastifyInstance) => {
  4. const cardController = new CardControllerImpl();
  5. server.route({
  6. method: 'POST',
  7. url: '/',
  8. handler: cardController.generate,
  9. });
  10. };