1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

folder and collection templates

This commit is contained in:
Kyle Spearrin
2018-05-15 12:53:08 -04:00
parent 1aa937724e
commit 9ce758e859
3 changed files with 21 additions and 0 deletions

View File

@@ -16,7 +16,9 @@ import { TemplateResponse } from '../models/response/templateResponse';
import { Card } from '../models/card';
import { Cipher } from '../models/cipher';
import { Collection } from '../models/collection';
import { Field } from '../models/field';
import { Folder } from '../models/folder';
import { Identity } from '../models/identity';
import { Login } from '../models/login';
import { LoginUri } from '../models/loginUri';
@@ -124,6 +126,12 @@ export class GetCommand {
case 'securenote':
template = SecureNote.template();
break;
case 'folder':
template = Folder.template();
break;
case 'collection':
template = Collection.template();
break;
default:
return Response.badRequest('Unknown template object.');
}