import React from 'react';
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'

import Home from './pages/home';
import StationProfile from './pages/station-profile';

export default function App() {

    return (
	<Router>
	    <Routes>
		<Route path="/" element={<Home />} />
		<Route path="/:uic" element={<StationProfile />} />
		<Route path="*" element={<Navigate to="/" />} />
	    </Routes>
	</Router>
  );
}
