FIxing a lot of issues and adding org data

This commit is contained in:
Finn 2019-07-11 16:12:46 +01:00
parent 4350a24132
commit a4268360f7
12 changed files with 327 additions and 11 deletions

View file

@ -345,4 +345,15 @@ export class ApiService {
}
);
}
// Basic Customer User stats API
public orgStats() {
const key = this.sessionKey;
return this.http.post<any>(
this.apiUrl + '/stats/organisation',
{
session_key : key,
}
);
}
}

View file

@ -0,0 +1,14 @@
import { Injectable } from '@angular/core';
import { ApiService } from './api-service';
import { Observable } from 'rxjs';
@Injectable()
export class OrgPiesService {
private orgPieUrl = '/v1/organisation/pies';
constructor(private api: ApiService) { }
public getOrgPie(): Observable<any> {
return this.api.post(this.orgPieUrl);
}
}