import type { RouteRecordRaw } from 'vue-router'

const Layout = () => import('@/layouts/index.vue')

const routes: RouteRecordRaw[] = [
  {
    path: '/paas/api',
    component: Layout,
    redirect: '/paas/api/index',
    name: 'paas_api',
    meta: {
      title: 'API接口',
      icon: 'ri:function-line',
    },
    children: [
      {
        path: 'index',
        name: 'paas_api_index',
        component: () => import('@/views/paas/api/index.vue'),
        meta: {
          title: 'API接口',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/paas/api',
        },
      },
    ],
  },
  {
    path: '/paas/log',
    component: Layout,
    redirect: '/paas/log/index',
    name: 'paas_log',
    meta: {
      title: '调用日志',
      icon: 'bx:bxs-component',
    },
    children: [
      {
        path: 'index',
        name: 'paas_log_index',
        component: () => import('@/views/paas/log/index.vue'),
        meta: {
          title: '调用日志',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/paas/log',
        },
      },
    ],
  },
]
export default routes
