2018-02-27 17:11:28 +02:00
|
|
|
/**
|
|
|
|
* Authorize Form
|
|
|
|
*/
|
|
|
|
|
2018-04-16 00:31:56 +03:00
|
|
|
import VueRouter from 'vue-router';
|
|
|
|
|
2018-02-27 17:11:28 +02:00
|
|
|
// Style
|
|
|
|
import './style.styl';
|
|
|
|
|
|
|
|
import init from '../init';
|
|
|
|
import Index from './views/index.vue';
|
2018-12-11 13:19:13 +02:00
|
|
|
import NotFound from '../common/views/pages/404.vue';
|
2018-02-27 17:11:28 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* init
|
|
|
|
*/
|
2018-04-16 00:31:56 +03:00
|
|
|
init(launch => {
|
|
|
|
// Init router
|
|
|
|
const router = new VueRouter({
|
|
|
|
mode: 'history',
|
2018-05-29 17:56:44 +03:00
|
|
|
base: '/auth/',
|
2018-04-16 00:31:56 +03:00
|
|
|
routes: [
|
|
|
|
{ path: '/:token', component: Index },
|
2018-12-11 13:19:13 +02:00
|
|
|
{ path: '*', component: NotFound }
|
2018-04-16 00:31:56 +03:00
|
|
|
]
|
|
|
|
});
|
2018-02-27 17:11:28 +02:00
|
|
|
|
2018-04-16 00:31:56 +03:00
|
|
|
// Launch the app
|
|
|
|
launch(router);
|
2018-02-27 17:11:28 +02:00
|
|
|
});
|