forked from olalonde/deisdash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.js
38 lines (37 loc) · 1.32 KB
/
routes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import React from 'react'
import {
Route,
IndexRoute,
IndexRedirect,
} from 'react-router'
import App from './containers/App'
import Auth from './containers/Auth'
import Dash from './containers/Dash'
import Apps from './containers/Apps'
import Profile from './containers/Profile'
import Users from './containers/Dash/Users'
export default (
<Route path="/" component={App}>
<IndexRoute component={Auth} />
<Route path="about" component={Auth} />
{/* logged in router */}
<Route path="dash" component={Dash}>
<IndexRedirect to="apps" />
<Route path="apps" component={Apps}>
<IndexRoute component={Apps.List} />
<Route path=":appID" component={Apps.Show}>
<IndexRedirect to="overview" />
<Route path="overview" component={Apps.Show.Overview} />
<Route path="config" component={Apps.Show.Config} />
<Route path="logs" component={Apps.Show.Logs} />
<Route path="builds" component={Apps.Show.Builds} />
<Route path="releases" component={Apps.Show.Releases} />
<Route path="domains" component={Apps.Show.Domains} />
<Route path="access" component={Apps.Show.Access} />
</Route>
</Route>
<Route path="users" component={Users} />
<Route path="profile" component={Profile} />
</Route>
</Route>
)