Implement refresh library

This commit is contained in:
aditya.chandel
2024-12-26 14:36:55 -07:00
parent f3bf5e9c0b
commit bc1aa39b34
18 changed files with 214 additions and 32 deletions
@@ -52,6 +52,10 @@ export class LibraryService {
);
}
refreshLibrary(libraryId: number): Observable<void> {
return this.http.put<void>(`${this.url}/${libraryId}/refresh`, {});
}
updateSort(libraryId: number, sort: SortOption): Observable<Library> {
return this.http.put<Library>(`${this.url}/${libraryId}/sort`, sort).pipe(
map(updatedLibrary => {