template sharing
This commit is contained in:
@@ -39,6 +39,18 @@ export class TemplatesService {
|
||||
return this.http.delete<{ message: string }>(`${this.apiUrl}/${templateId}`);
|
||||
}
|
||||
|
||||
shareTemplate(templateId: string, userId: string): Observable<ListTemplate> {
|
||||
return this.http.post<ListTemplate>(`${this.apiUrl}/${templateId}/shares`, {
|
||||
userId,
|
||||
});
|
||||
}
|
||||
|
||||
removeShare(templateId: string, userId: string): Observable<ListTemplate> {
|
||||
return this.http.delete<ListTemplate>(
|
||||
`${this.apiUrl}/${templateId}/shares/${userId}`,
|
||||
);
|
||||
}
|
||||
|
||||
createListFromTemplate(
|
||||
templateId: string,
|
||||
data: CreateListFromTemplateRequest = {},
|
||||
|
||||
Reference in New Issue
Block a user