|
|
|
|
/*
|
|
|
|
|
* routes.js
|
|
|
|
|
* Copyright (C) 2025 veypi <i@veypi.com>
|
|
|
|
|
*
|
|
|
|
|
* Distributed under terms of the MIT license.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
{ path: '/', component: '/page/index.html', name: 'home', meta: { auth: true } },
|
|
|
|
|
{ path: '/login', component: '/page/login.html', name: 'login', meta: { auth: false } },
|
|
|
|
|
{ path: '/profile', component: '/page/profile.html', name: 'profile', meta: { auth: true } },
|
|
|
|
|
{ path: '/app', component: '/page/app.html', name: 'app', meta: { auth: true } },
|
|
|
|
|
{ path: '/settings', component: '/page/settings.html', name: 'settings', meta: { auth: true } },
|
|
|
|
|
{
|
|
|
|
|
path: '/app/:id', layout: 'app', meta: { auth: true },
|
|
|
|
|
children: [
|
|
|
|
|
{ path: '/', component: '/page/app/index.html' },
|
|
|
|
|
{ path: '/user', component: '/page/app/user.html' },
|
|
|
|
|
{ path: '/auth', component: '/page/app/auth.html' },
|
|
|
|
|
{ path: '/settings', component: '/page/app/settings.html' },
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{ path: '*', component: '/page/404.html', name: '404' },
|
|
|
|
|
]
|
|
|
|
|
export default routes
|