Made data optional on api post

This commit is contained in:
Tom Bloor 2017-09-07 15:35:55 +01:00
parent cfb131b800
commit 20da5f1e92

View file

@ -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;
}