mirror of
https://gitlab.com/comunic/comunicconsole
synced 2025-07-06 18:12:50 +00:00
Integrate router
This commit is contained in:
17
src/ui/routes/MainRoute.tsx
Normal file
17
src/ui/routes/MainRoute.tsx
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Main route
|
||||
*
|
||||
* @author Pierre Hubert
|
||||
*/
|
||||
|
||||
import { Route, BrowserRouter as Router, Switch } from "react-router-dom";
|
||||
|
||||
export function MainRoute() {
|
||||
return (
|
||||
<Router>
|
||||
<Switch>
|
||||
<Route path="*">Not found</Route>
|
||||
</Switch>
|
||||
</Router>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user