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

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

    constructor(
        public http: HttpClient
    ) {
        super('',http)
        super.fullUrl = `${environment.storeApi}/api/sync`
    }

    sync_all(query){
        return this.http.get(`${this.fullUrl}/sync_all${query}`)
    }

    deleteTestInforUid(uid){
        return this.http.delete(`${this.fullUrl}/delete_test/${uid}`);
    }
}
