1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

sync folders and ciphers. fix dates

This commit is contained in:
Kyle Spearrin
2018-08-20 16:01:26 -04:00
parent ddee5908f1
commit d0c51bacfd
15 changed files with 127 additions and 49 deletions

View File

@@ -286,6 +286,11 @@ export class ApiService implements ApiServiceAbstraction {
// Folder APIs
async getFolder(id: string): Promise<FolderResponse> {
const r = await this.send('GET', '/folders/' + id, null, true, true);
return new FolderResponse(r);
}
async postFolder(request: FolderRequest): Promise<FolderResponse> {
const r = await this.send('POST', '/folders', request, true, true);
return new FolderResponse(r);