dyomedea/src/App.tsx

15 lines
390 B
TypeScript
Raw Normal View History

2022-11-25 15:45:26 +00:00
import type { Component } from 'solid-js';
import { Routes, Route, Navigate } from '@solidjs/router';
import Map from './components/map';
2022-12-14 20:50:09 +00:00
2022-11-25 15:45:26 +00:00
const App: Component = () => {
return (
<Routes>
<Route path='/map/:provider/:lon/:lat/:zoom/:rotation' component={Map} />
<Route path='/*' element={<Navigate href='/map/osm/0/0/2/0' />} />
2022-11-25 15:45:26 +00:00
</Routes>
);
};
export default App;