templates aus listen erstellen

This commit is contained in:
Bastian Wagner
2026-06-15 10:38:35 +02:00
parent c2d2157de8
commit 8caf207c7b
8 changed files with 243 additions and 4 deletions

View File

@@ -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,