Skip to content

Commit

Permalink
register api
Browse files Browse the repository at this point in the history
  • Loading branch information
mdvanes committed Sep 12, 2024
1 parent 872656e commit 168d4d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions apps/client/src/Components/Pages/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Schedule from "../../Molecules/Schedule/Schedule";
import ServiceLinksBar from "../../Molecules/ServiceLinksBar/ServiceLinksBar";
import StreamContainer from "../../Molecules/StreamContainer/StreamContainer";
import SwitchBarList from "../../Molecules/SwitchBarList/SwitchBarList";
import { SwitchesCard } from "../../Molecules/SwitchesCard/SwitchesCard";
import UrlToMusic from "../../Molecules/UrlToMusic/UrlToMusic";
import VideoStream from "../../Molecules/VideoStream/VideoStream";
import Docker from "../Docker/Docker";
Expand Down Expand Up @@ -42,6 +43,7 @@ const Dashboard: FC = () => {
<Grid container spacing={2} className={classes.container}>
<Grid item xs={12} md={3}>
<div className="switch-bar-list-wrapper">
<SwitchesCard />
<SwitchBarList />
</div>
<GasChart />
Expand Down
2 changes: 1 addition & 1 deletion apps/client/src/Services/emptyApi.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";

export const emptySplitApi = createApi({
// reducerPath: "energy-usage-api",
reducerPath: "homeremoteGeneratedApi",
baseQuery: fetchBaseQuery({ baseUrl: "/" }),
endpoints: () => ({}),
});
4 changes: 2 additions & 2 deletions apps/client/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { carTwinApi } from "./Services/carTwinApi";
import { dataloraApi } from "./Services/dataloraApi";
import { dockerListApi } from "./Services/dockerListApi";
import { downloadListApi } from "./Services/downloadListApi";
import { emptySplitApi } from "./Services/emptyApi";
import { energyUsageApi } from "./Services/energyUsageApi";
import { energyUsageApi as newEnergyUsageApi } from "./Services/generated/energyUsageApi";
import { homesecApi } from "./Services/homesecApi";
import { jukeboxApi } from "./Services/jukeboxApi";
import { monitApi } from "./Services/monitApi";
Expand All @@ -29,7 +29,7 @@ export const store = configureStore({
dockerListApi.middleware,
downloadListApi.middleware,
energyUsageApi.middleware,
newEnergyUsageApi.middleware,
emptySplitApi.middleware,
homesecApi.middleware,
jukeboxApi.middleware,
monitApi.middleware,
Expand Down

0 comments on commit 168d4d3

Please sign in to comment.