Guest User

Untitled

a guest
Jan 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import Home from '@/components/Home'
  4. import Error404 from '@/components/Error/404'
  5.  
  6. Vue.use(Router)
  7.  
  8. export default new Router({
  9. routes: [
  10. {
  11. path: '/',
  12. name: 'Home',
  13. component: Home
  14. },
  15. ......
  16. {
  17. path: '/404',
  18. name: 'error404',
  19. component: Error404
  20. },
  21. {
  22. path: '*',
  23. name: 'error404',
  24. component: Error404
  25. }
  26. ],
  27. mode: 'history'
  28. })
  29.  
  30. [[redirects]]
  31. from = "/sitemap"
  32. to = "http://s3.xxx.amazonaws.com/xxx/sitemap.xml"
  33. status = 200
  34. force = true
Add Comment
Please, Sign In to add comment