port 4201 + port 3001 for api + some fixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Body, Controller, Get, Post } from '@nestjs/common';
|
||||
import { Body, Controller, Post } from '@nestjs/common';
|
||||
|
||||
import { AppService } from './app.service';
|
||||
|
||||
@@ -7,7 +7,7 @@ export class AppController {
|
||||
constructor(private readonly appService: AppService) {}
|
||||
|
||||
@Post()
|
||||
async sendEMail(@Body() mailInfo: {name:string,email:String,message:string}): Promise<void> {
|
||||
async sendEMail(@Body() mailInfo: {name:string,email:string,message:string}): Promise<void> {
|
||||
return await this.appService.sendMail(mailInfo);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user