13 lines
338 B
TypeScript
13 lines
338 B
TypeScript
import { baseAPI } from '@/shared/api/base-api';
|
|
import { TextItem } from '@/shared/types/text.types';
|
|
|
|
export const textControlApi = baseAPI.injectEndpoints({
|
|
endpoints: (builder) => ({
|
|
fetchText: builder.query<TextItem[], void>({
|
|
query: () => '/text',
|
|
}),
|
|
}),
|
|
});
|
|
|
|
export const { useFetchTextQuery } = textControlApi;
|