mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +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 (
|
return (
|
||||||
<div className="main">
|
<div className="main">
|
||||||
<Switch>
|
<Switch>
|
||||||
|
<ExtensionPoint
|
||||||
|
name="redirect-route"
|
||||||
|
props={{authenticated, links}}
|
||||||
|
>
|
||||||
<Redirect exact path="/" to="/repos"/>
|
<Redirect exact path="/" to="/repos"/>
|
||||||
|
</ExtensionPoint>
|
||||||
<Route exact path="/login" component={Login} />
|
<Route exact path="/login" component={Login} />
|
||||||
<Route path="/logout" component={Logout} />
|
<Route path="/logout" component={Logout} />
|
||||||
<ProtectedRoute
|
<ProtectedRoute
|
||||||
|
|||||||
Reference in New Issue
Block a user