Created
November 17, 2017 13:21
-
-
Save alexbeletsky/490e80097bfb5d9e7e5dd234dcf8bce4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const routes = ( | |
| <Route path=""> | |
| <Route path="/signup" component={SignUp} /> | |
| <Route path="/signin" component={SignIn} /> | |
| // applied here.. | |
| <Route path="/welcome-on-board" component={checkBoarded(Welcome, { withValue: true, redirectTo: '/app/dashboard'}) } /> | |
| <Route path="/forgot-password" component={ForgotPassword} /> | |
| <Route path="/signout" component={SignOut} /> | |
| // .. and here | |
| <Route path="/app" component={checkBoarded(requiresAuth(App), { withValue: false: redirectTo: '/welcome-on-board' })}> | |
| <Route name="dashboard" path="dashboard" component={Dashboard} /> | |
| <Route name="profile" path="user-profile" component={UserProfile} /> | |
| <Route name="websites" path="websites/:id" component={websiteContext(Websites)}> | |
| <Route name="banners" path="banners" component={Dashboard} /> | |
| <Route name="revenues" path="revenues" component={Revenues} /> | |
| </Route> | |
| </Route> | |
| </Route> | |
| <Route path="/config" component={requiresAuth(Config)}> | |
| <Route name="page" path="page" component={PageConfig} /> | |
| </Route> | |
| <Route path="*" component={FourOFour} status={404} /> | |
| </Route> | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment