chore: switch API crom root to managed server
This commit is contained in:
parent
329258eb27
commit
726d5f99e9
|
@ -5,7 +5,6 @@ import Home from './pages/home';
|
|||
export default function App(){
|
||||
return (
|
||||
<div className='App'>
|
||||
<h1>App</h1>
|
||||
<Router>
|
||||
<Routes>
|
||||
<Route path='/' element={<Home/>}/>
|
||||
|
|
|
@ -15,7 +15,7 @@ export default function EntitiesMap({entities}) {
|
|||
<>
|
||||
<MapContainer
|
||||
center={position}
|
||||
zoom={8}
|
||||
zoom={6}
|
||||
minZoom={2}
|
||||
scrollWheelZoom={false}
|
||||
>
|
||||
|
|
|
@ -24,7 +24,7 @@ export default function RelationsMap({relations}) {
|
|||
<>
|
||||
<MapContainer
|
||||
center={position}
|
||||
zoom={8}
|
||||
zoom={6}
|
||||
minZoom={2}
|
||||
scrollWheelZoom={false}
|
||||
>
|
||||
|
|
|
@ -15,7 +15,7 @@ export default function Home(){
|
|||
|
||||
//get entities
|
||||
const fetchEntities = () => {
|
||||
axios.get('http://83.223.94.182:65535/entities/info')
|
||||
axios.get('https://v1rgncy.api.swingbe.de/entities/info')
|
||||
.then((response) => {
|
||||
setEntities(response.data);
|
||||
})
|
||||
|
@ -26,7 +26,7 @@ export default function Home(){
|
|||
|
||||
//get relations
|
||||
const fetchRelations = () => {
|
||||
axios.get('http://83.223.94.182:65535/relations/info')
|
||||
axios.get('https://v1rgncy.api.swingbe.de/relations/info')
|
||||
.then((response) => {
|
||||
setRelations(response.data);
|
||||
})
|
||||
|
@ -44,7 +44,6 @@ export default function Home(){
|
|||
if(entities.length>0){
|
||||
return (
|
||||
<>
|
||||
<h1>Home</h1>
|
||||
<List entities={entities} />
|
||||
<EntitiesMap entities={entities} />
|
||||
<RelationsMap
|
||||
|
|
Loading…
Reference in New Issue