Remove WebServerVerticle and update API endpoints in settings.json; fix base URL formatting in multiple components
This commit is contained in:
@@ -48,7 +48,7 @@ const HistoryCharts = () => {
|
||||
const ENDPOINT = config.appConfig.endpoints.sensors;
|
||||
|
||||
const reqConfig = {
|
||||
baseUrl: `${BASE}/${ENDPOINT}`,
|
||||
baseUrl: `${BASE}${ENDPOINT}`,
|
||||
params: {}
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ const PollutionMap = ({ deviceId }) => {
|
||||
let endp = ENDPOINT.replace('{0}', deviceId);
|
||||
|
||||
const reqConfig = {
|
||||
baseUrl: `${BASE}/${endp}`,
|
||||
baseUrl: `${BASE}${endp}`,
|
||||
params: {}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ const SideMenu = ({ isOpen, onClose }) => {
|
||||
const ENDPOINT = config.appConfig.endpoints.GET_DEVICES;
|
||||
|
||||
const reqConfig = {
|
||||
baseUrl: `${BASE}/${ENDPOINT}`,
|
||||
baseUrl: `${BASE}${ENDPOINT}`,
|
||||
params: {}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ const SummaryCards = ({ deviceId }) => {
|
||||
const endp = ENDPOINT.replace('{0}', deviceId);
|
||||
|
||||
const reqConfig = {
|
||||
baseUrl: `${BASE}/${endp}`,
|
||||
baseUrl: `${BASE}${endp}`,
|
||||
params: {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user