Commit 2790b150 by Arjun Jhukal

updated the public menu pai

parent ac8f024a
......@@ -29,8 +29,17 @@ export const menuApi = createApi({
export const { useCreateMenuMutation, useGetAllMenuQuery } = menuApi;
const basePublicQuery = fetchBaseQuery({
baseUrl: process.env.NEXT_PUBLIC_BASE_URL,
baseUrl:
(process.env.NEXT_PUBLIC_FRONTEND_URL || "") + "/api/backend",
credentials: "include",
prepareHeaders: (headers) => {
headers.set("Accept", "application/json");
headers.set("Content-Type", "application/json");
return headers;
},
});
export const userMenuApi = createApi({
reducerPath: "userMenuApi",
baseQuery: basePublicQuery,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment