TelegramReports: fix
This commit is contained in:
parent
4719e679d9
commit
7296a2e297
@ -2,12 +2,12 @@ import { Body, Controller, Get, Post } from "@nestjs/common";
|
||||
import { AppService } from "./app.service";
|
||||
import { AppDto } from "./app.dto";
|
||||
|
||||
@Controller("sendtgreport")
|
||||
@Controller("/api/2.0/sendtgreport")
|
||||
export class AppController {
|
||||
constructor(private readonly appService: AppService) { }
|
||||
|
||||
@Post()
|
||||
sendMessage(@Body() appDto: AppDto): Promise<string> {
|
||||
return this.appService.sendMessage(appDto);
|
||||
async sendMessage(@Body() appDto: AppDto): Promise<string> {
|
||||
return await this.appService.sendMessage(appDto);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user