api-manager.ts 990 Bytes
import { client } from './client';
import { RecoilState } from 'recoil';

export default {
    getDoctorRegReqList : (token : RecoilState<any>) => {
        return client.get('/manage/doctor', {
            headers : {
                Authorization : token,
            },
        });
    },
    getDoctorRegReqDetail : (token : RecoilState<any>, doctorId : string) => {
        return client.get(`/manage/doctor/${doctorId}`, {
            headers : {
                Authorization : token,
            },
        });
    },
    acceotDoctorRegReq : (token : RecoilState<any>, Data : FormData) => {
        return client.post('/manage/doctor/accept', Data, {
            headers : {
                Authorization : token,
            },
        });
    },
    rejectDoctorRegReq : (token : RecoilState<any>, Data : FormData) => {
        return client.post('/manage/doctor/reject', Data, {
            headers : {
                Authorization : token,
            },
        });
    },
};