Varakh
d0312a5853
All checks were successful
/ build (push) Successful in 5m30s
Reviewed-on: #43 Co-authored-by: Varakh <varakh@varakh.de> Co-committed-by: Varakh <varakh@varakh.de>
16 lines
384 B
TypeScript
16 lines
384 B
TypeScript
import { injectEndpoints } from './index';
|
|
import ApiTags from '../constants/apiTags';
|
|
import { InfoResponse } from '../types';
|
|
|
|
export const infoApi = injectEndpoints({
|
|
endpoints: (build) => {
|
|
return {
|
|
getInfo: build.query<InfoResponse, void>({
|
|
query: () => ({ url: 'info' }),
|
|
providesTags: [ApiTags.Info]
|
|
})
|
|
};
|
|
}
|
|
});
|
|
|
|
export const { useGetInfoQuery } = infoApi;
|