Auth korrigiert & mail based on SES
This commit is contained in:
18
bizmatch/src/app/services/mail.service.ts
Normal file
18
bizmatch/src/app/services/mail.service.ts
Normal 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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user