Update 0.0.3:
All checks were successful
Docker Image CI / build-and-push (push) Successful in 2m1s
Docker Image CI / deploy (push) Successful in 28s
Docker Image CI / notify-failure (push) Has been skipped

-delen van agenda toegevoegd
-popup aangepast
-accepteren van uitnodiging toegevoegd
This commit is contained in:
2025-04-18 22:38:21 +02:00
parent aaa712c37c
commit 781723fddf
26 changed files with 681 additions and 40 deletions

View File

@@ -0,0 +1,32 @@
import {Injectable} from '@angular/core';
import {environment} from '../../environments/environment';
import {HttpClient} from '@angular/common/http';
import {Observable} from 'rxjs';
import {InviteEntity} from '../models/invite-entity';
@Injectable({
providedIn: 'root'
})
export class AgendaService {
baseApi = `${environment.baseApi}/agenda`;
constructor(private http: HttpClient) {
}
sendInvite(url: string, email: string): Observable<any> {
return this.http.post(`${this.baseApi}/${email}`, {url});
}
createInvite(companyId: number, email: string): Observable<InviteEntity> {
return this.http.post<InviteEntity>(`${this.baseApi}/createinvite`, {companyId: companyId, email: email});
}
verifyInvite(token: string) {
return this.http.get(this.baseApi + `/verify?token=${token}`, {})
}
acceptInvite(user: number, company: number): Observable<any> {
return this.http.post(this.baseApi + `/link?user=${user}&company=${company}`, {})
}
}