import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { environment } from '../../../../../environments/environment'; import { ServiceModel } from '../../../model/service/service'; import { BaseHttpService } from '../../http/base-http.service'; @Injectable() export class ExternalServiceService { private actionUrl: string; constructor(private http: BaseHttpService) { this.actionUrl = environment.Server + 'services/'; } create(serviceModel: ServiceModel): Observable { return this.http.post(this.actionUrl, serviceModel); } }