1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 06:32:34 +01:00
flox/client/app/routes.js
2016-10-14 13:25:52 +02:00

25 lines
772 B
JavaScript

import Vue from 'vue';
import Router from 'vue-router';
import config from './config';
import Content from './components/Content/Content.vue';
import SearchContent from './components/Content/SearchContent.vue';
import Settings from './components/Content/Settings.vue';
import TMDBContent from './components/Content/TMDBContent.vue';
Vue.use(Router);
export default new Router({
mode: 'history',
base: config.uri,
routes: [
{ path: '/', component: Content },
{ path: '/search', component: SearchContent },
{ path: '/settings', component: Settings },
{ path: '/suggestions', component: TMDBContent },
{ path: '/trending', component: TMDBContent },
{ path: '/upcoming', component: TMDBContent },
{ path: '*', component: Content }
]
});