routes.js 936 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import HomePage from '../pages/home.vue'
  2. import RadioPage from '../pages/Radio.vue'
  3. import RadioLivePage from '../pages/RadioLive.vue'
  4. import RadioShowsPage from '../pages/RadioShows.vue'
  5. import ShowPage from '../pages/Show.vue'
  6. import NotFoundPage from '../pages/404.vue'
  7. var routes = [
  8. {
  9. path: (process.env.NODE_ENV === 'development') ? '/' : '/plaid/',
  10. master: true,
  11. component: HomePage,
  12. detailRoutes: [
  13. {
  14. name: 'Radio',
  15. path: '/radio/:radioName',
  16. component: RadioPage,
  17. },
  18. {
  19. name: 'RadioLive',
  20. path: '/radio/:radioName/live',
  21. component: RadioLivePage,
  22. },
  23. {
  24. name: 'RadioShows',
  25. path: '/radio/:radioName/shows',
  26. component: RadioShowsPage,
  27. },
  28. {
  29. name: 'ShowPage',
  30. path: '/radio/:radioId/shows/:showId',
  31. component: ShowPage
  32. }],
  33. },
  34. {
  35. path: '(.*)',
  36. component: NotFoundPage,
  37. },
  38. ]
  39. export default routes