mirror of https://github.com/veypi/OneAuth.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
JavaScript
26 lines
1.0 KiB
JavaScript
/*
|
|
* 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', layout: 'default', meta: { auth: true } },
|
|
{ path: '/login', component: '/page/login.html', name: 'login', meta: { auth: false } },
|
|
{ path: '/profile', component: '/page/profile.html', layout: 'default', meta: { auth: true } },
|
|
{ path: '/app', component: '/page/app.html', name: 'app', layout: 'default', meta: { auth: true } },
|
|
{ path: '/settings', component: '/page/settings.html', layout: 'default', 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
|