mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
add extension point for the redirect route
This commit is contained in:
@@ -35,7 +35,12 @@ class Main extends React.Component<Props> {
|
||||
return (
|
||||
<div className="main">
|
||||
<Switch>
|
||||
<Redirect exact path="/" to="/repos" />
|
||||
<ExtensionPoint
|
||||
name="redirect-route"
|
||||
props={{authenticated, links}}
|
||||
>
|
||||
<Redirect exact path="/" to="/repos"/>
|
||||
</ExtensionPoint>
|
||||
<Route exact path="/login" component={Login} />
|
||||
<Route path="/logout" component={Logout} />
|
||||
<ProtectedRoute
|
||||
|
||||
Reference in New Issue
Block a user