Made data optional on api post
This commit is contained in:
parent
cfb131b800
commit
20da5f1e92
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ export class ApiService {
|
|||
}
|
||||
}
|
||||
|
||||
public post(url, data) {
|
||||
public post(url: string, data: any = {}) {
|
||||
if ( this.sessionKey != null ) {
|
||||
data.session_key = this.sessionKey;
|
||||
}
|
||||
|
|
Reference in a new issue