store: add emptyCockpitApi
This is just to follow the convention already used in the project.
This commit is contained in:
parent
d0f2317649
commit
570cb3eba2
2 changed files with 8 additions and 8 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
|
||||
|
||||
import { emptyCockpitApi } from './emptyCockpitApi';
|
||||
import {
|
||||
GetArchitecturesApiResponse,
|
||||
GetArchitecturesApiArg,
|
||||
|
|
@ -7,12 +6,6 @@ import {
|
|||
GetBlueprintsApiResponse,
|
||||
} from './imageBuilderApi';
|
||||
|
||||
const emptyCockpitApi = createApi({
|
||||
reducerPath: 'cockpitApi',
|
||||
baseQuery: fetchBaseQuery({ baseUrl: '/api' }),
|
||||
endpoints: () => ({}),
|
||||
});
|
||||
|
||||
export const cockpitApi = emptyCockpitApi.injectEndpoints({
|
||||
endpoints: (builder) => {
|
||||
return {
|
||||
|
|
|
|||
7
src/store/emptyCockpitApi.ts
Normal file
7
src/store/emptyCockpitApi.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
|
||||
|
||||
export const emptyCockpitApi = createApi({
|
||||
reducerPath: 'cockpitApi',
|
||||
baseQuery: fetchBaseQuery({ baseUrl: '/api' }),
|
||||
endpoints: () => ({}),
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue