Commit 948bd9be authored by dev0tion's avatar dev0tion

Add getWalletFiles method

parent b653afcf
{ {
"create": "files": {
{ "walletsPath": "/home/dev0tion/Desktop/Wallets",
"mnemonic": "foo bar buz" "walletsFiles": [
}, "myFirstWallet.json",
"load": "mySecondWallet.json"
{ ]
"success": "true"
}, },
"status": "status":
{ {
......
...@@ -21,6 +21,15 @@ export class ApiService { ...@@ -21,6 +21,15 @@ export class ApiService {
private webApiUrl = 'http://localhost:5000/api/v1'; private webApiUrl = 'http://localhost:5000/api/v1';
private headers = new Headers({'Content-Type': 'application/json'}); private headers = new Headers({'Content-Type': 'application/json'});
/**
* Gets available wallets at the default path
*/
getWalletFiles(): Observable<any> {
return this.http
.get(this.mockApiUrl + '/wallet/files')
.map((response: Response) => response);
}
/** /**
* Create a new wallet. * Create a new wallet.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment