update superAdmin users business
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { IListingResponse } from '@/core/models/service.model';
|
||||
import ISummary from '@/core/models/summary';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
import { CATALOG_API_ROUTES } from './apiRoutes';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class CatalogsService {
|
||||
constructor(private http: HttpClient) {}
|
||||
|
||||
private apiRoutes = CATALOG_API_ROUTES;
|
||||
|
||||
getGuilds(): Observable<IListingResponse<ISummary>> {
|
||||
return this.http.get<IListingResponse<ISummary>>(this.apiRoutes.guilds());
|
||||
}
|
||||
|
||||
getProviders(): Observable<IListingResponse<ISummary>> {
|
||||
return this.http.get<IListingResponse<ISummary>>(this.apiRoutes.providers());
|
||||
}
|
||||
|
||||
getDevices(): Observable<IListingResponse<ISummary>> {
|
||||
return this.http.get<IListingResponse<ISummary>>(this.apiRoutes.devices());
|
||||
}
|
||||
|
||||
getDeviceBrands(): Observable<IListingResponse<ISummary>> {
|
||||
return this.http.get<IListingResponse<ISummary>>(this.apiRoutes.deviceBrands());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user