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 {
|
import {
|
||||||
GetArchitecturesApiResponse,
|
GetArchitecturesApiResponse,
|
||||||
GetArchitecturesApiArg,
|
GetArchitecturesApiArg,
|
||||||
|
|
@ -7,12 +6,6 @@ import {
|
||||||
GetBlueprintsApiResponse,
|
GetBlueprintsApiResponse,
|
||||||
} from './imageBuilderApi';
|
} from './imageBuilderApi';
|
||||||
|
|
||||||
const emptyCockpitApi = createApi({
|
|
||||||
reducerPath: 'cockpitApi',
|
|
||||||
baseQuery: fetchBaseQuery({ baseUrl: '/api' }),
|
|
||||||
endpoints: () => ({}),
|
|
||||||
});
|
|
||||||
|
|
||||||
export const cockpitApi = emptyCockpitApi.injectEndpoints({
|
export const cockpitApi = emptyCockpitApi.injectEndpoints({
|
||||||
endpoints: (builder) => {
|
endpoints: (builder) => {
|
||||||
return {
|
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