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