DigitalData.UserManager/DigitalData.UserManager.NgWebUI/ClientApp/.angular/cache/17.3.0/babel-webpack/b14f4b87ca118dcb5b0d40272587f0460c3253f643311783ca701df9c18d44db.json

1 line
1.4 KiB
JSON

{"ast":null,"code":"import * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport let ApiService = /*#__PURE__*/(() => {\n class ApiService {\n constructor(http, baseUrl) {\n this.http = http;\n this.baseUrl = baseUrl;\n }\n getAll() {\n return this.http.get(this.baseUrl, {\n withCredentials: true\n });\n }\n getById(id) {\n const url = `${this.baseUrl}/${id}`;\n return this.http.get(url, {\n withCredentials: true\n });\n }\n create(createModel) {\n return this.http.post(this.baseUrl, createModel, {\n withCredentials: true\n });\n }\n update(updateModel) {\n const url = `${this.baseUrl}`;\n return this.http.put(url, updateModel, {\n withCredentials: true\n });\n }\n delete(id) {\n const url = `${this.baseUrl}/${id}`;\n return this.http.delete(url, {\n withCredentials: true\n });\n }\n static #_ = this.ɵfac = function ApiService_Factory(t) {\n return new (t || ApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject('BASE_URL'));\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: ApiService,\n factory: ApiService.ɵfac,\n providedIn: 'root'\n });\n }\n return ApiService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}