Created
November 17, 2017 12:58
-
-
Save alexbeletsky/65ad183180d795f5981bc520fbb25975 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
<Route path="/app" component={requiresAuth(App, { role: 'user', redirectTo: '/signin' })}> | |
<Route name="dashboard" path="dashboard" component={Dashboard} /> | |
<Route name="invoices" path="user-profile" component={UserProfile} /> | |
</Route> | |
<Route path="/config" component={requiresAuth(Config, { role: 'admin', redirectTo: '/app' })}> | |
<Route name="page" path="page" component={PageConfig} /> | |
</Route> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment