AutoMod/web/src/App.tsx

23 lines
587 B
TypeScript
Raw Normal View History

2022-01-22 20:41:25 +01:00
import { Route, BrowserRouter, Routes } from 'react-router-dom';
2022-01-23 23:23:09 +01:00
import Home from './pages/Home';
2022-01-22 20:41:25 +01:00
import './App.css';
2022-01-23 23:23:09 +01:00
import '@revoltchat/ui/src/styles/dark.css';
import '@revoltchat/ui/src/styles/common.css';
import RequireAuth from './components/RequireAuth';
const API_URL = 'http://localhost:9000';
2022-01-22 20:41:25 +01:00
function App() {
return (
<BrowserRouter>
<Routes>
2022-01-23 23:23:09 +01:00
<Route path='/' element={<Home />} />
<Route path='/dashboard' element={<RequireAuth><a>among us</a></RequireAuth>} />
2022-01-22 20:41:25 +01:00
</Routes>
</BrowserRouter>
);
}
2022-01-23 23:23:09 +01:00
export default App;
export { API_URL }