diff options
Diffstat (limited to 'src/router.js')
-rw-r--r-- | src/router.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/router.js b/src/router.js new file mode 100644 index 0000000..c93277b --- /dev/null +++ b/src/router.js @@ -0,0 +1,31 @@ +import Vue from 'vue' +import Router from 'vue-router' +import {generateUrl} from 'nextcloud-server/dist/router' + +const Protection = () => import('./views/Protection') +const Recover = () => import('./views/Recover') +const History = () => import('./views/History') + +Vue.use(Router) + +export default new Router({ + base: generateUrl('/apps/ransowmare_detection/'), + linkActiveClass: 'active', + routes: [ + { + path: '/', + name: 'protection', + component: Protection, + }, + { + path: '/recover', + name: 'recover', + component: Recover, + }, + { + path: '/history', + name: 'history', + component: History, + }, + ], +})
\ No newline at end of file |