index.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import Home from 'pages/Home'
  4. import Corpus from 'pages/Corpus'
  5. import Nominum from 'pages/Nominum'
  6. import NominumItem from 'components/Content/NominumItem'
  7. import Locorum from 'pages/Locorum'
  8. import Operum from 'pages/Operum'
  9. import OperumItem from 'components/Content/OperumItem'
  10. import Bibliographie from 'pages/Bibliographie'
  11. Vue.use(Router)
  12. const routes = [
  13. {
  14. name: 'home',
  15. path: '/',
  16. component: Home
  17. },
  18. {
  19. name: 'corpus',
  20. path: '/corpus',
  21. component: Corpus
  22. },
  23. {
  24. name: 'nominum',
  25. path: '/nominum',
  26. component: Nominum
  27. },
  28. {
  29. name: 'nominumItem',
  30. path: '/nominum/:id',
  31. component: NominumItem
  32. },
  33. {
  34. name: 'locorum',
  35. path: '/locorum',
  36. component: Locorum
  37. },
  38. {
  39. name: 'operum',
  40. path: '/operum',
  41. component: Operum
  42. },
  43. {
  44. name: 'operumItem',
  45. path: '/operum/:id',
  46. component: OperumItem
  47. },
  48. {
  49. name: 'bibliographie',
  50. path: '/bibliographie',
  51. component: Bibliographie
  52. }
  53. ]
  54. export default new Router({
  55. mode: 'history',
  56. routes
  57. })