push rasad front on new repo
This commit is contained in:
14
src/features/file/services/get-allocation-information.js
Normal file
14
src/features/file/services/get-allocation-information.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { createAsyncThunk } from "@reduxjs/toolkit";
|
||||
import axios from "axios";
|
||||
import { getRoleFromUrl } from "../../../utils/getRoleFromUrl";
|
||||
|
||||
export const getAllocationInformation = createAsyncThunk(
|
||||
"GET_ALLOCATION_INFORMATION",
|
||||
async (d) => {
|
||||
const { data, status } = await axios.get(
|
||||
`province_check_operator_request/`,
|
||||
{ params: { ...d, role: getRoleFromUrl() } }
|
||||
);
|
||||
return { data, status };
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user