discord-client/webpack/routes.js

33 lines
467 B
JavaScript

export default {
auth: [
{
name: 'channel',
path: '/channel/:link',
component: require('./vue/auth/channel.vue').default
}, {
path: '*',
redirect: '/channel/me'
}
],
noauth: [
{
name: 'login',
path: '/login',
component: require('./vue/noauth/login.vue').default
}, {
name: 'register',
path: '/register',
component: require('./vue/noauth/register.vue').default
}, {
path: '*',
redirect: '/login'
}
]
}