import { Injectable } from '@angular/core' ; import { AbstractService } from 'src/app/services/abstract' ; import { HttpClient } from '@angular/common/http' ; import { ClientSerializerApplication } from 'src/app/model/Client' ; import { Observable } from 'rxjs' ; @ Injectable ( ) export class MediasService extends AbstractService { public serializer = new ClientSerializerApplication ( ) ; protected endpoint = 'media' ; constructor ( protected http ) { super ( http ) ; } getPictureByName ( name ) { return this . http . get ( `${ this . getUrl ( ) }/${ name }` , this . getOptions ( ) ) ; } }