Backend & Frontend mit Mail Versand
This commit is contained in:
13
api/src/app/app.controller.ts
Normal file
13
api/src/app/app.controller.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Body, Controller, Get, Post } from '@nestjs/common';
|
||||
|
||||
import { AppService } from './app.service';
|
||||
|
||||
@Controller()
|
||||
export class AppController {
|
||||
constructor(private readonly appService: AppService) {}
|
||||
|
||||
@Post()
|
||||
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