1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-14 22:22:39 +01:00
flox/client/app/routes.js

27 lines
996 B
JavaScript
Raw Normal View History

2016-10-10 10:57:39 +02:00
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/Index.vue';
2016-10-14 12:50:05 +02:00
import TMDBContent from './components/Content/TMDBContent.vue';
2016-10-10 10:57:39 +02:00
Vue.use(Router);
export default new Router({
mode: 'history',
base: config.uri,
routes: [
{ path: '/', component: Content, name: 'home' },
{ path: '/movies', component: Content, name: 'movie' },
{ path: '/tv', component: Content, name: 'tv' },
{ path: '/search', component: SearchContent, name: 'search' },
{ path: '/settings', component: Settings, name: 'settings' },
{ path: '/suggestions', component: TMDBContent, name: 'suggestions' },
{ path: '/trending', component: TMDBContent, name: 'trending' },
{ path: '/upcoming', component: TMDBContent, name: 'upcoming' },
2016-10-10 10:57:39 +02:00
{ path: '*', component: Content }
]
});