penambahan list icon

This commit is contained in:
2024-06-21 14:25:14 +07:00
parent b9012f5544
commit 1ebe1acc12
15 changed files with 1456 additions and 775 deletions

View File

@@ -1,12 +1,18 @@
import { Injectable } from "@angular/core";
import { HttpClient, HttpHeaders } from "@angular/common/http";
import { Observable } from "rxjs";
const httpOptions = {
headers: new HttpHeaders({ 'Content-Type': 'application/json' })
};
@Injectable({
providedIn: "root",
})
export class MasterService {
constructor(private http: HttpClient) {}
loadDataIcon = null;
apiBaseURL = 'assets/data';
constructor(private http: HttpClient) {
this.loadDataIcon = `${this.apiBaseURL}/hemat/remixicons.json`;
}
getMasterListData(): Observable<any> {
const url = `https://kapi.absys.ninja/hemat/header-param/list`;
@@ -132,4 +138,8 @@ export class MasterService {
});
return this.http.get<any>(url, { headers });
}
getIconData(): Observable<any> {
return this.http.get(this.loadDataIcon, httpOptions);
}
}