const routes = [
  // Public
  { path: '/login', component: '/page/auth/login.html' },
  { path: '/callback/:provider', component: '/page/auth/callback.html' },

  // Dashboard (Default Layout)
  {
    path: '/',
    layout: 'default',
    meta: { auth: true },
    component: '/page/dashboard/index.html'
  },

  // Role Management
  { path: '/roles', component: '/page/sys/role/index.html', layout: 'default', meta: { auth: true } },

  // Settings Management
  { path: '/settings', component: '/page/sys/settings.html', layout: 'default', meta: { auth: true } },

  // User System
  { path: '/profile', component: '/page/user/profile.html', layout: 'default', meta: { auth: true } },
  {
    path: '/users',
    component: '/page/sys/user/index.html',
    layout: 'default',
    meta: { auth: true, roles: ['admin'] }
  },

  // OAuth Management
  { path: '/oauth/apps', component: '/page/sys/oauth/index.html', layout: 'default', meta: { auth: true } },
  { path: '/oauth/providers', component: '/page/sys/oauth/providers.html', layout: 'default', meta: { auth: true } },

  // Errors
  { path: '/403', component: '/page/403.html' },
  { path: '*', component: '/page/404.html' }
]

export default routes
