Config.ts 870 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. path: '/search/:collectionName',
  35. component: VectorSearch,
  36. auth: true,
  37. },
  38. ];
  39. export default RouterConfig;