teableio/teable

View on GitHub
apps/nestjs-backend/src/features/chat/chat.controller.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Controller, Post, Req, Res } from '@nestjs/common';
import { Request, Response } from 'express';
import { ChatService } from './chat.service';

@Controller('api/chart')
export class ChatController {
  constructor(private readonly chartService: ChatService) {}

  @Post('completions')
  async completions(@Req() req: Request, @Res() res: Response) {
    await this.chartService.completions(req, res);
  }
}