Config.ts 647 B

123456789101112131415161718192021222324252627282930
  1. import Collection from '../pages/collections/Collection';
  2. import Collections from '../pages/collections/Collections';
  3. import Connect from '../pages/connect/Connect';
  4. import Overview from '../pages/overview/Overview';
  5. import { RouterConfigType } from './Types';
  6. const RouterConfig: RouterConfigType[] = [
  7. {
  8. path: '/',
  9. component: Overview,
  10. auth: true,
  11. },
  12. {
  13. path: '/connect',
  14. component: Connect,
  15. auth: false,
  16. },
  17. {
  18. path: '/collections',
  19. component: Collections,
  20. auth: true,
  21. },
  22. {
  23. path: '/collection/:collectionName',
  24. component: Collection,
  25. auth: true,
  26. },
  27. ];
  28. export default RouterConfig;