UPDAATE
This commit is contained in:
@@ -2,7 +2,7 @@ import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const deactivatedAccounts = createApi({
|
||||
reducerPath: "api",
|
||||
reducerPath: "deactivatedAccounts",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const faqs = createApi({
|
||||
reducerPath: "api",
|
||||
reducerPath: "faqs",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const registerUser = createApi({
|
||||
reducerPath: "api",
|
||||
export const aboutUs = createApi({
|
||||
reducerPath: "aboutUs",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
@@ -17,7 +17,7 @@ export const registerUser = createApi({
|
||||
}),
|
||||
});
|
||||
|
||||
export const { } = registerUser;
|
||||
export const { } = aboutUs;
|
||||
|
||||
export type Post = {
|
||||
id: number;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const registerUser = createApi({
|
||||
reducerPath: "api",
|
||||
export const manageContactUs = createApi({
|
||||
reducerPath: "manageContactUs",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
@@ -17,7 +17,7 @@ export const registerUser = createApi({
|
||||
}),
|
||||
});
|
||||
|
||||
export const { } = registerUser;
|
||||
export const { } = manageContactUs;
|
||||
|
||||
export type Post = {
|
||||
id: number;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const registerUser = createApi({
|
||||
reducerPath: "api",
|
||||
export const manageGroups = createApi({
|
||||
reducerPath: "manageGroups",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
@@ -17,7 +17,7 @@ export const registerUser = createApi({
|
||||
}),
|
||||
});
|
||||
|
||||
export const { } = registerUser;
|
||||
export const { } = manageGroups;
|
||||
|
||||
export type Post = {
|
||||
id: number;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const registerUser = createApi({
|
||||
reducerPath: "api",
|
||||
export const manageJobs = createApi({
|
||||
reducerPath: "manageJobs",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
@@ -17,7 +17,7 @@ export const registerUser = createApi({
|
||||
}),
|
||||
});
|
||||
|
||||
export const { } = registerUser;
|
||||
export const { } = manageJobs;
|
||||
|
||||
export type Post = {
|
||||
id: number;
|
||||
|
||||
@@ -2,7 +2,7 @@ import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const managePosts = createApi({
|
||||
reducerPath: "api",
|
||||
reducerPath: "managePosts",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const manageSubAdmin = createApi({
|
||||
reducerPath: "api",
|
||||
reducerPath: "manageSubAdmin",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const registerUser = createApi({
|
||||
reducerPath: "api",
|
||||
export const masterModule = createApi({
|
||||
reducerPath: "masterModule",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
@@ -17,7 +17,7 @@ export const registerUser = createApi({
|
||||
}),
|
||||
});
|
||||
|
||||
export const { } = registerUser;
|
||||
export const { } = masterModule;
|
||||
|
||||
export type Post = {
|
||||
id: number;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const registerUser = createApi({
|
||||
reducerPath: "api",
|
||||
export const myProfile = createApi({
|
||||
reducerPath: "myProfile",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
@@ -17,7 +17,7 @@ export const registerUser = createApi({
|
||||
}),
|
||||
});
|
||||
|
||||
export const { } = registerUser;
|
||||
export const { } = myProfile;
|
||||
|
||||
export type Post = {
|
||||
id: number;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const registerUser = createApi({
|
||||
reducerPath: "api",
|
||||
export const privacyPolicy = createApi({
|
||||
reducerPath: "privacyPolicy",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
@@ -17,7 +17,7 @@ export const registerUser = createApi({
|
||||
}),
|
||||
});
|
||||
|
||||
export const { } = registerUser;
|
||||
export const { } = privacyPolicy;
|
||||
|
||||
export type Post = {
|
||||
id: number;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const registerUser = createApi({
|
||||
reducerPath: "api",
|
||||
export const privacy = createApi({
|
||||
reducerPath: "privacy",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
@@ -17,7 +17,7 @@ export const registerUser = createApi({
|
||||
}),
|
||||
});
|
||||
|
||||
export const { } = registerUser;
|
||||
export const { } = privacy;
|
||||
|
||||
export type Post = {
|
||||
id: number;
|
||||
|
||||
@@ -2,7 +2,7 @@ import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const registerUser = createApi({
|
||||
reducerPath: "api",
|
||||
reducerPath: "registerUser",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { createApi } from "@reduxjs/toolkit/query";
|
||||
import { baseQueryWithReauth } from "./apiSlice";
|
||||
|
||||
export const registerUser = createApi({
|
||||
export const termsAndCondition = createApi({
|
||||
reducerPath: "api",
|
||||
baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling
|
||||
endpoints: (builder) => ({
|
||||
@@ -17,7 +17,7 @@ export const registerUser = createApi({
|
||||
}),
|
||||
});
|
||||
|
||||
export const { } = registerUser;
|
||||
export const { } = termsAndCondition;
|
||||
|
||||
export type Post = {
|
||||
id: number;
|
||||
|
||||
@@ -6,6 +6,14 @@ import { deactivatedAccounts } from "./Service/deactivated.account.service";
|
||||
import { faqs } from "./Service/faqs.service";
|
||||
import { managePosts } from "./Service/manage.posts.service";
|
||||
import { manageSubAdmin } from "./Service/manage.subadmin.service";
|
||||
import { manageJobs } from "./Service/manage.jobs.service";
|
||||
import { manageGroups } from "./Service/manage.groups.service";
|
||||
import { manageContactUs } from "./Service/manage.contactus.service";
|
||||
import { aboutUs } from "./Service/manage.aboutus.service";
|
||||
import { privacyPolicy } from "./Service/privacy.policy.service";
|
||||
import { privacy } from "./Service/privacy.service";
|
||||
import { myProfile } from "./Service/myprofie.service";
|
||||
import { masterModule } from "./Service/master.module.service";
|
||||
|
||||
export const store = configureStore({
|
||||
reducer: {
|
||||
@@ -15,28 +23,31 @@ export const store = configureStore({
|
||||
[faqs.reducerPath]: faqs.reducer,
|
||||
[managePosts.reducerPath]: managePosts.reducer,
|
||||
[manageSubAdmin.reducerPath]: manageSubAdmin.reducer,
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[registerUser.reducerPath]: registerUser.reducer,
|
||||
[registerUser.reducerPath]: registerUser.reducer,
|
||||
[registerUser.reducerPath]: registerUser.reducer,
|
||||
[registerUser.reducerPath]: registerUser.reducer,
|
||||
[registerUser.reducerPath]: registerUser.reducer,
|
||||
[registerUser.reducerPath]: registerUser.reducer,
|
||||
[manageJobs.reducerPath]: manageJobs.reducer,
|
||||
[manageGroups.reducerPath]: manageGroups.reducer,
|
||||
[manageContactUs.reducerPath]: manageContactUs.reducer,
|
||||
[aboutUs.reducerPath]: aboutUs.reducer,
|
||||
[privacyPolicy.reducerPath]: privacyPolicy.reducer,
|
||||
[privacy.reducerPath]: privacy.reducer,
|
||||
[myProfile.reducerPath]: myProfile.reducer,
|
||||
[masterModule.reducerPath]: masterModule.reducer,
|
||||
auth: authReducer,
|
||||
},
|
||||
middleware: (getDefaultMiddleware) =>
|
||||
getDefaultMiddleware().concat(
|
||||
dashboard.middleware,
|
||||
registerUser.middleware,
|
||||
deactivatedAccounts.middleware,
|
||||
managePosts.middleware,
|
||||
faqs.middleware,
|
||||
manageSubAdmin.middleware,
|
||||
manageJobs.middleware,
|
||||
manageGroups.middleware,
|
||||
manageContactUs.middleware,
|
||||
aboutUs.middleware,
|
||||
privacyPolicy.middleware,
|
||||
privacy.middleware,
|
||||
myProfile.middleware,
|
||||
masterModule.middleware,
|
||||
),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user