| 1 |
- {"ast":null,"code":"import { environment } from 'src/environments/environment';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport let RestaurantsService = /*#__PURE__*/(() => {\n class RestaurantsService {\n constructor(http) {\n this.http = http;\n //url api\n this.apiUrl = environment.apiUrl;\n }\n // get users\n getRestaurants() {\n return this.http.get(`${this.apiUrl}/api/restaurants`);\n }\n static #_ = this.ɵfac = function RestaurantsService_Factory(t) {\n return new (t || RestaurantsService)(i0.ɵɵinject(i1.HttpClient));\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: RestaurantsService,\n factory: RestaurantsService.ɵfac,\n providedIn: 'root'\n });\n }\n return RestaurantsService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|