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.
21 lines
718 B
JavaScript
21 lines
718 B
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', 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: '/app/:app_id', children: [
|
|
{ path: '/', component: '/page/app/index.html', name: 'app_index', meta: { auth: true } },
|
|
]
|
|
},
|
|
{ path: '*', component: '/page/404.html', name: '404' },
|
|
]
|
|
export default routes
|