Commit 948bd9be authored by dev0tion's avatar dev0tion

Add getWalletFiles method

parent b653afcf
{
"create":
{
"mnemonic": "foo bar buz"
},
"load":
{
"success": "true"
"files": {
"walletsPath": "/home/dev0tion/Desktop/Wallets",
"walletsFiles": [
"myFirstWallet.json",
"mySecondWallet.json"
]
},
"status":
{
......
......@@ -21,6 +21,15 @@ export class ApiService {
private webApiUrl = 'http://localhost:5000/api/v1';
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.
*/
......
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