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

@@ -3,6 +3,7 @@ import {HttpClient} from '@angular/common/http';
import {Observable} from 'rxjs';
import {environment} from '../../environments/environment';
import {Company} from '../models/company';
import {CompanyDTO} from '../models/app-user-dto';
@Injectable({
providedIn: 'root',
@@ -16,4 +17,13 @@ export class CompanyService {
getCompanies(): Observable<Company[]> {
return this.http.get<Company[]>(`${this.baseApi}`);
}
getCompany(id: number): Observable<CompanyDTO> {
console.log(id)
return this.http.get<CompanyDTO>(`${this.baseApi}/${id}`);
}
linkCompany(user: number, token: string): Observable<any> {
return this.http.post(this.baseApi + `/link?user=${user}&token=${token}`, {})
}
}