Last active
November 17, 2017 12:56
-
-
Save alexbeletsky/24bc738d24b15907895e067ccd8a4486 to your computer and use it in GitHub Desktop.
This file contains 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} /> | |
<Route path="/welcome-on-board" component={Welcome} /> | |
<Route path="/forgot-password" component={ForgotPassword} /> | |
<Route path="/signout" component={SignOut} /> /* App component is wrapped | |
with requiresAuth() */ | |
<Route path="/app" component={requiresAuth(App)}> | |
<Route name="dashboard" path="dashboard" component={Dashboard} /> | |
<Route name="profile" path="user-profile" component={UserProfile} /> | |
</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