Task #11, Task #6 - add click_link type, saving/restore support to the editor

This commit is contained in:
garrettmills
2020-02-08 11:19:00 -06:00
parent 8a53bc2888
commit 3861c1e72f
11 changed files with 255 additions and 31 deletions

View File

@@ -24,11 +24,11 @@ export class ApiService {
public request(endpoint, params = {}, method: 'get'|'post' = 'get'): Observable<ApiResponse> {
return new Observable<ApiResponse>(sub => {
const data: any = {}
let data: any = {}
if ( method === 'get' ) {
data.params = params;
} else {
data.body = params;
data = params;
}
this.http[method](this._build_url(endpoint), data).subscribe({