From 0bcdb95b5774621b62e6154cdeafc82245efbcb8 Mon Sep 17 00:00:00 2001 From: Nikolai Petukhov Date: Wed, 16 Oct 2024 23:48:26 +0300 Subject: [PATCH] change to dev api --- src/backend/api.js | 2 +- src/backend/redux/api_slice.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/backend/api.js b/src/backend/api.js index 040f11a..15ec334 100644 --- a/src/backend/api.js +++ b/src/backend/api.js @@ -4,7 +4,7 @@ import {getConfigValue} from "@brojs/cli"; const LOCAL = "http://localhost:8099"; const DEV = "https://dev.bro-js.ru"; -export const BASE_API_URL = LOCAL + getConfigValue("enterfront.api"); +export const BASE_API_URL = DEV + getConfigValue("enterfront.api"); // fetch(`${BASE_API_URL}/books/list`) diff --git a/src/backend/redux/api_slice.js b/src/backend/redux/api_slice.js index df00273..0dee591 100644 --- a/src/backend/redux/api_slice.js +++ b/src/backend/redux/api_slice.js @@ -1,10 +1,7 @@ import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; import {getConfigValue} from "@brojs/cli"; -const LOCAL = "http://localhost:8099"; -const DEV = "https://dev.bro-js.ru"; - -export const BASE_API_URL = LOCAL + getConfigValue("enterfront.api"); +import { BASE_API_URL } from "../api.js"; const baseQuery = fetchBaseQuery({ baseUrl: BASE_API_URL,