Load applications from api.
This commit is contained in:
@@ -11,6 +11,10 @@ export class ApplicationService {
|
||||
private _httpClient: HttpClient
|
||||
) {}
|
||||
|
||||
getAll(): Promise<Application[]> {
|
||||
return this._httpClient.get<Application[]>('/api/applications').toPromise();
|
||||
}
|
||||
|
||||
add(application: Application): Promise<Application> {
|
||||
return this._httpClient.post<Application>('/api/applications', application).toPromise();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user