import { Injectable } from '@angular/core';
import { ConfigService } from '@shared/config/config.service';
import { FleioApiService } from '../../fleio-api.service';
import { HttpClient } from '@angular/common/http';
import { IDBaaSBackupScheduleModel } from '@fleio-api/openstack/model/dbaas-backup-schedule.model';

@Injectable({
  providedIn: 'root'
})
export class DBaaSBackupSchedulesApiService extends FleioApiService<IDBaaSBackupScheduleModel> {
  constructor(protected httpClient: HttpClient, protected config: ConfigService) {
    super();
    this.setEndpoint(config.getPanelApiUrl('openstack/dbaas-backup-schedules'));
  }
}
