-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdraft
16 lines (16 loc) · 822 Bytes
/
draft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<Provider store={store}>
<Router history={history}>
<Redirect from="/" to={`/dashboard`} />
<Route path="/auth/signin" component={SignInLayout}>
<IndexRoute component={SignIn} />
</Route>
<Route path="/" component={appLayout}>
<Route path="dashboard" component={dashboardLayout} onEnter={redirectIfNotAuthenticated}>
<IndexRoute component={firstDashboard} restClient={restClient} />
</Route>
<Route path="mgmt" component={mgmtLayout} resources={treeResources} onEnter={redirectIfNotAuthenticated}>
{crudRoutes}
</Route>
</Route>
</Router>
</Provider>