Skip to content

Instantly share code, notes, and snippets.

@alexbeletsky
Created November 17, 2017 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbeletsky/65ad183180d795f5981bc520fbb25975 to your computer and use it in GitHub Desktop.
Save alexbeletsky/65ad183180d795f5981bc520fbb25975 to your computer and use it in GitHub Desktop.
<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