feat: add view template component (#513)

Fixes: #512
This commit is contained in:
punwai
2019-12-18 11:19:34 +03:00
committed by Abhay Chawla
parent c3222d49ac
commit 1ed56d2a62
10 changed files with 219 additions and 3 deletions
+16
View File
@@ -25,4 +25,20 @@ export class TemplatesService {
return this.http.get('/templates');
}
/**
* @param templateId Template ID.
* @returns {Observable<any>} Fetches Template.
*/
getTemplate(templateId: string): Observable<any> {
return this.http.get(`/templates/${templateId}`);
}
/**
* @param templateId Template ID.
* @returns {Observable<any>}
*/
deleteTemplate(templateId: string): Observable<any> {
return this.http.delete(`/templates/${templateId}`);
}
}