import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { NewVisitor } from '../../entity/NewVisitor';
import { CrudService } from './crud.service';

const BASE_URL = (action: string = null) => { return `NewVisitor${(action ? `/${action}` : '')}` }
@Injectable({
  providedIn: 'root'
})
export class NewVisitorService extends CrudService<NewVisitor> {

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