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

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


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

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

}
