Added working snippets and placeholder pie chart

This commit is contained in:
piratefinn 2017-12-13 12:37:11 +00:00
parent a2ad5dc1a0
commit 846c21f967
9 changed files with 142 additions and 41 deletions

View file

@ -4,12 +4,12 @@ import { Observable } from 'rxjs/Rx';
@Injectable()
export class CustSnippetsService {
private orgSnippetsUrl = '/v1/organisation/snippets';
private custSnippetsUrl = '/v1/customer/snippets';
constructor(private api: ApiService) { }
// This endpoint should mimic basicStats
public getData(): Observable<any> {
return this.api.post(this.orgSnippetsUrl);
return this.api.post(this.custSnippetsUrl);
}
}