web: WIP work on adding create measure functionality in the UI.

This commit is contained in:
Jonathan Bernard
2019-04-11 09:24:47 -05:00
parent 0fe3ccfdd2
commit 9d9f8c4f9b
11 changed files with 144 additions and 41 deletions

View File

@ -114,7 +114,7 @@ export class PmApiClient {
}
public async createMeasure<T extends MeasureConfig>(measure: Measure<T>): Promise<Measure<T>> {
const resp = await this.http.post(`/measures`);
const resp = await this.http.post(`/measures`, measure);
return resp.data;
}