refactor(frontend): rename booklore-ui to frontend
- Frontend path: - rename the tracked Angular app tree from `booklore-ui/` to `frontend/` - preserve file contents during the move so this commit stays focused on the path change itself - Frontend docs: - update the moved frontend README and contribution guide where they refer to the renamed folder - keep those edits limited to path references introduced by the directory rename
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import {inject, Injectable} from '@angular/core';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {API_CONFIG} from '../../core/config/api-config';
|
||||
|
||||
export interface FileMoveRequest {
|
||||
bookIds: number[];
|
||||
moves: {
|
||||
bookId: number;
|
||||
targetLibraryId: number | null;
|
||||
targetLibraryPathId: number | null;
|
||||
}[];
|
||||
}
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class FileOperationsService {
|
||||
private readonly baseUrl = `${API_CONFIG.BASE_URL}/api/v1/files`;
|
||||
|
||||
private http = inject(HttpClient);
|
||||
|
||||
moveFiles(request: FileMoveRequest): Observable<void> {
|
||||
return this.http.post<void>(`${this.baseUrl}/move`, request);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user