Skip to content

Commit

Permalink
change default routing page '/' instead of '/list'
Browse files Browse the repository at this point in the history
  • Loading branch information
aghontpi committed Oct 20, 2021
1 parent e93e516 commit 909999d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pages/index.route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import Editor from './Editor';
const Routing = () => {
return (
<Switch>
<Route exact path="/list" component={List} />
<Route exact path={['', '/list']} component={List} />
<Route path="/template/:templateId" component={Editor} />
<Route path="*">
<Redirect to="/list" />
<Redirect to="/" />
</Route>
</Switch>
);
Expand Down

0 comments on commit 909999d

Please sign in to comment.