Auth korrigiert & mail based on SES

This commit is contained in:
2024-03-12 20:26:58 +01:00
parent be146fdc6a
commit f3868da8f8
7 changed files with 96 additions and 35 deletions

View File

@@ -0,0 +1,18 @@
import { Injectable } from '@angular/core';
import { MailInfo } from '../../../../common-models/src/main.model';
import { HttpClient } from '@angular/common/http';
import { environment } from '../../environments/environment';
import { lastValueFrom } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class MailService {
private apiBaseUrl = environment.apiBaseUrl;
constructor(private http: HttpClient) { }
async mail(mailinfo:MailInfo):Promise<void>{
await lastValueFrom(this.http.post(`${this.apiBaseUrl}/bizmatch/mail`,mailinfo));
}
}