mirror of
https://github.com/WDI-Ideas/rubix.git
synced 2026-04-28 08:55:50 +00:00
13 lines
401 B
JavaScript
13 lines
401 B
JavaScript
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
|
|
|
|
export const ecoSystem = createApi({
|
|
reducerPath: 'ecoSystem',
|
|
baseQuery: fetchBaseQuery({ baseUrl: 'process.env.VITE_API_BASE_URL' }),
|
|
endpoints: (builder) => ({
|
|
getEcoSystem: builder.query({
|
|
query: () => 'eco/active',
|
|
}),
|
|
}),
|
|
});
|
|
|
|
export const { useGetEcoSystemQuery } = ecoSystem; |