tg-msg-send.routes.ts 430 B

123456789
  1. import { FastifyInstance } from 'fastify'
  2. import { TgMsgSendController } from '../controllers/tg-msg-send.controller'
  3. import { SendTgMsgSendBody } from '../dto/tg-msg-send.dto'
  4. export default async function tgMsgSendRoutes(fastify: FastifyInstance) {
  5. const tgMsgSendController = new TgMsgSendController(fastify)
  6. fastify.post<{ Body: SendTgMsgSendBody }>('/send', tgMsgSendController.sendMessage.bind(tgMsgSendController))
  7. }