summaryrefslogtreecommitdiff
path: root/src/client/app/test/script.ts
blob: 5818cf291334c505eed6f882e1dd4c347e060867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import VueRouter from 'vue-router';

// Style
import './style.styl';

import init from '../init';
import Index from './views/index.vue';

init(launch => {
	document.title = 'Misskey';

	// Init router
	const router = new VueRouter({
		mode: 'history',
		base: '/test/',
		routes: [
			{ path: '/', component: Index },
		]
	});

	// Launch the app
	launch(router);
});