templates aus listen erstellen
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
UpdateListRequest,
|
||||
UserList,
|
||||
} from './lists.models';
|
||||
import { ListTemplate } from '../templates/templates.models';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class ListsService {
|
||||
@@ -50,6 +51,10 @@ export class ListsService {
|
||||
);
|
||||
}
|
||||
|
||||
createTemplateFromList(listId: string): Observable<ListTemplate> {
|
||||
return this.http.post<ListTemplate>(`${this.apiUrl}/${listId}/template`, {});
|
||||
}
|
||||
|
||||
updateItem(
|
||||
listId: string,
|
||||
itemId: string,
|
||||
|
||||
Reference in New Issue
Block a user