Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const routes =
- {
- path: '/',
- async action({next}) {
- const children = await next();
- return (
- <AppRootContainer>
- {children}
- </AppRootContainer>
- );
- },
- children: [
- {
- path: '',
- async action() {
- return (
- <AppHomePage/>
- );
- },
- },
- {
- path: '/admin',
- async action({next}) {
- const children = await next();
- return (
- <AdminRootContainer>
- {children}
- </AdminRootContainer>
- );
- },
- children: [
- {
- path: '',
- async action() {
- return (
- <AdminHomePage/>
- );
- },
- },
- ]
- },
- ],
- };
Add Comment
Please, Sign In to add comment