Guest User

Untitled

a guest
Feb 25th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. const routes =
  2. {
  3. path: '/',
  4. async action({next}) {
  5. const children = await next();
  6. return (
  7. <AppRootContainer>
  8. {children}
  9. </AppRootContainer>
  10. );
  11. },
  12. children: [
  13. {
  14. path: '',
  15. async action() {
  16. return (
  17. <AppHomePage/>
  18. );
  19. },
  20. },
  21. {
  22. path: '/admin',
  23. async action({next}) {
  24. const children = await next();
  25. return (
  26. <AdminRootContainer>
  27. {children}
  28. </AdminRootContainer>
  29. );
  30. },
  31. children: [
  32. {
  33. path: '',
  34. async action() {
  35. return (
  36. <AdminHomePage/>
  37. );
  38. },
  39. },
  40. ]
  41. },
  42. ],
  43. };
Add Comment
Please, Sign In to add comment