mirror of
https://github.com/WDI-Ideas/rubix.git
synced 2026-04-29 01:35:53 +00:00
13 lines
445 B
JavaScript
13 lines
445 B
JavaScript
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
|
|
const API_URL = import.meta.env.VITE_API_BASE_URL;
|
|
export const PrivacyPage = createApi({
|
|
reducerPath: 'privacy',
|
|
baseQuery: fetchBaseQuery({ baseUrl: API_URL + "/api" }),
|
|
endpoints: (builder) => ({
|
|
getPrivacyPage: builder.query({
|
|
query: () => 'policy/active',
|
|
}),
|
|
}),
|
|
});
|
|
|
|
export const { useGetPrivacyPageQuery } = PrivacyPage; |