cf864d2955070da24f17148048dc17baf14adae90c87e7884eacf58535e925c3.json 1.8 KB

1
  1. {"ast":null,"code":"import * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nclass SongService {\n constructor(http) {\n this.http = http;\n this.apiUrl = '/song'; // Replace with the appropriate API URL\n }\n\n getAllSongs() {\n return this.http.get(this.apiUrl);\n }\n}\nSongService.ɵfac = function SongService_Factory(t) {\n return new (t || SongService)(i0.ɵɵinject(i1.HttpClient));\n};\nSongService.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: SongService,\n factory: SongService.ɵfac,\n providedIn: 'root'\n});\nexport { SongService };","map":{"version":3,"names":["SongService","constructor","http","apiUrl","getAllSongs","get","i0","ɵɵinject","i1","HttpClient","factory","ɵfac","providedIn"],"sources":["C:\\Users\\Kuba\\Desktop\\studia\\WPFt\\RiffMaster web application\\Frontend\\RiffMasterFront\\src\\app\\Services\\song.service.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { Song } from '../models/song';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SongService {\r\n private apiUrl = '/song'; // Replace with the appropriate API URL\r\n\r\n constructor(private http: HttpClient) {}\r\n\r\n getAllSongs(): Observable<Song[]> {\r\n return this.http.get<Song[]>(this.apiUrl);\r\n }\r\n}\r\n"],"mappings":";;AAKA,MAGaA,WAAW;EAGtBC,YAAoBC,IAAgB;IAAhB,KAAAA,IAAI,GAAJA,IAAI;IAFhB,KAAAC,MAAM,GAAG,OAAO,CAAC,CAAC;EAEa;;EAEvCC,WAAWA,CAAA;IACT,OAAO,IAAI,CAACF,IAAI,CAACG,GAAG,CAAS,IAAI,CAACF,MAAM,CAAC;EAC3C;;AAPWH,WAAW,C;mBAAXA,WAAW,EAAAM,EAAA,CAAAC,QAAA,CAAAC,EAAA,CAAAC,UAAA;AAAA;AAAXT,WAAW,C;SAAXA,WAAW;EAAAU,OAAA,EAAXV,WAAW,CAAAW,IAAA;EAAAC,UAAA,EAFV;AAAM;SAEPZ,WAAW"},"metadata":{},"sourceType":"module","externalDependencies":[]}