Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Injectable } from '@angular/core';
- import {HttpClient} from '@angular/common/http';
- import {ConfigService} from '../../../services/config.service';
- import {Observable} from 'rxjs';
- @Injectable({
- providedIn: 'root'
- })
- export class CarStatusService {
- constructor(private http:HttpClient, private configService: ConfigService) { }
- private _car_status_url = this.configService._api_url +'/cars-status';
- getCarStatusList(): Observable<any> {
- return this.http.get(this._car_status_url + '/all');
- }
- createCarStatus(carStatus: object): Observable<object> {
- return this.http.post(this._car_status_url , carStatus);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement