All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.app.core.services.step.service.ts Maven / Gradle / Ivy

The newest version!
/*
 * SPDX-FileCopyrightText: 2017-2024 Enedis
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 */

import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { environment } from '@env/environment';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class StepService {

  private stepUrl = '/api/steps/v1';

  constructor(private http: HttpClient) {
  }

  findById(stepId: string): Observable {
    return this.http.get(environment.backend + this.stepUrl + '/' + encodeURIComponent(stepId));
  }
}