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

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

  constructor(
    public http: HttpClient
  ) {
    super('/v1/setting/subjects', http)
   }

   upload(data){
    return this.http.post(`${this.fullUrl}/upload`,data)
   }

   getSubjectReady(){
     return this.http.get(`${this.fullUrl}?status_id=1`);
   }

   check(uid){
    return this.http.get(`${this.prefix}/v1/setting/check_subjects/${uid}`)
   }
}
