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.

11 lines
379 B

  1. import { RouteHandlerMethod } from 'fastify';
  2. import { CardServiceImpl } from './service';
  3. export class CardControllerImpl {
  4. readonly generate: RouteHandlerMethod = async (request, reply) => {
  5. const query = request.query as Record<string, unknown>;
  6. const cardSources = query.cards as string[] | undefined;
  7. reply.send(CardServiceImpl.generate(cardSources));
  8. };
  9. }