From 782f0dc4485fffec63617050f32078d647c6920c Mon Sep 17 00:00:00 2001 From: Mohamed Jinas Date: Mon, 10 Aug 2020 21:23:21 +0500 Subject: [PATCH] Create routes.js --- resources/js/routes.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 resources/js/routes.js 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