diff --git a/resources/js/routes.js b/resources/js/routes.js new file mode 100644 index 0000000..4df3278 --- /dev/null +++ b/resources/js/routes.js @@ -0,0 +1,19 @@ +import Home from './pages/Home'; +import Article from './pages/Article'; + +export default { + mode: 'history', + + + routes: [ + { + path: '/', + component: Home + }, + { + path: '/article/:id', + component: Article, + name: 'article.show' + } + ] +}; \ No newline at end of file