Config.ts 779 B

123456789101112131415161718192021222324252627282930313233343536
  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 VectorSearch from '../pages/seach/VectorSearch';
  6. import { RouterConfigType } from './Types';
  7. const RouterConfig: RouterConfigType[] = [
  8. {
  9. path: '/',
  10. component: Overview,
  11. auth: true,
  12. },
  13. {
  14. path: '/connect',
  15. component: Connect,
  16. auth: false,
  17. },
  18. {
  19. path: '/collections',
  20. component: Collections,
  21. auth: true,
  22. },
  23. {
  24. path: '/collections/:collectionName',
  25. component: Collection,
  26. auth: true,
  27. },
  28. {
  29. path: '/search',
  30. component: VectorSearch,
  31. auth: true,
  32. },
  33. ];
  34. export default RouterConfig;