Skip to content

Instantly share code, notes, and snippets.

@zbyte64
Created Jul 31, 2015
Embed
What would you like to do?
Montage Admin DSL
<Route path="/" component={AdminPanel}>
<Route path="users" component={CrudList}>
<Route path="/add" component={CrudAdd}/>
<Route path="/:id" component={CrudDetail}/>
<Route path="/:id/delete" component={CrudDelete}/>
<Route path="/:id/transfer" component={TransferAccount}/>
</Route>
<Route path="industries" component={CrudList}>
<Route path="/add" component={RedirectTo('/admin/new-industry')}/>
<Route path="/:id" component={CrudDetail}/>
<Route path="/:id/delete" component={CrudDelete}/>
</Route>
</Route>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment