This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user