import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { CrudService } from './crud.service';
import { first, map } from 'rxjs/operators';
import { HappinessCost } from '../../entity/happiness-cost.model';

const BASE_URL = (action: string = null) => { return `HappinessCost${(action ? `/${action}` : '')}` }


@Injectable({
  providedIn: 'root'
})
export class HappinessCostService extends CrudService<HappinessCost> {

  constructor(protected http: HttpClient) {
    super(http, BASE_URL);
  }

}
