import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { BaseService } from '../../base/base-service';
import {environment} from "../../../../environments/environment";

@Injectable({
    providedIn: 'root'
})
export class ChangeTestingDateService extends BaseService {

    constructor(
        public http: HttpClient
    ) {
        super('/v1/register/manage_testings',http)
        // super.fullUrl = `${environment.storeApi}/api/question/question_category_detail`
    }

     approve(data){
         return this.http.put(`${this.prefix}/v1/register/change_testing_date`,data)
     }

     reject(data){
        return this.http.put(`${this.prefix}/v1/register/no_room_available/${data}`,data)
     }
}
