/*
 * 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: 'public' },
  { 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
