index.js 818 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 Locorum from 'pages/Locorum'
  7. import Operum from 'pages/Operum'
  8. import Bibliographie from 'pages/Bibliographie'
  9. Vue.use(Router)
  10. const routes = [
  11. {
  12. name: 'home',
  13. path: '/',
  14. component: Home
  15. },
  16. {
  17. name: 'corpus',
  18. path: '/corpus',
  19. component: Corpus
  20. },
  21. {
  22. name: 'nominum',
  23. path: '/nominum',
  24. component: Nominum
  25. },
  26. {
  27. name: 'locorum',
  28. path: '/locorum',
  29. component: Locorum
  30. },
  31. {
  32. name: 'operum',
  33. path: '/operum',
  34. component: Operum
  35. },
  36. {
  37. name: 'bibliographie',
  38. path: '/bibliographie',
  39. component: Bibliographie
  40. }
  41. ]
  42. export default new Router({
  43. mode: 'history',
  44. routes
  45. })