feat: Implement product management features including CRUD operations and UI components
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { IPaginatedResponse } from '@/core/models/service.model';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
@@ -10,8 +11,8 @@ export class StoresService {
|
||||
|
||||
private apiRoutes = STORES_API_ROUTES;
|
||||
|
||||
getAll(): Observable<IStoreResponse[]> {
|
||||
return this.http.get<IStoreRawResponse[]>(this.apiRoutes.list());
|
||||
getAll(): Observable<IPaginatedResponse<IStoreResponse>> {
|
||||
return this.http.get<IPaginatedResponse<IStoreRawResponse>>(this.apiRoutes.list());
|
||||
}
|
||||
|
||||
getSingle(storeId: string): Observable<IStoreResponse> {
|
||||
|
||||
Reference in New Issue
Block a user