22 lines
486 B
TypeScript
22 lines
486 B
TypeScript
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
|
|
|
|
const baseQuery = fetchBaseQuery({
|
|
baseUrl: process.env.NEXT_PUBLIC_API_URL,
|
|
});
|
|
|
|
export const TAGS = {
|
|
STOCKS: 'stocks',
|
|
GAS_STATIONS: 'gas-stations',
|
|
VACANCIES: 'vacancies',
|
|
PARTNERS: 'partners',
|
|
CERTIFICATES: 'certificates',
|
|
CHARITY: 'charity',
|
|
} as const;
|
|
|
|
export const baseAPI = createApi({
|
|
reducerPath: 'baseAPI',
|
|
baseQuery,
|
|
tagTypes: Object.values(TAGS),
|
|
endpoints: () => ({}),
|
|
});
|