import { createRouter, createWebHistory } from 'vue-router'
import HelloWorld from "../components/HelloWorld.vue";
import authenticationRoutes from './authentication'
import courseManagementRoutes from './courseManagement'
import meetingManagementRoutes from './meetingManagement'
import newsManagementRoutes from './newsManagement'
import organizationManagementRoutes from './organizationManagement'
import userManagementRoutes from './userManagement'

// 请不要直接修改本文件，使用在router下的对应模块名称的js中引入路由的方式来代替->

const routes = [
    { path: '/', component: HelloWorld, meta: {"msg": "HeIl⚪ W0rId!"}},
    ...authenticationRoutes,
    ...courseManagementRoutes,
    ...meetingManagementRoutes,
    ...newsManagementRoutes,
    ...organizationManagementRoutes,
    ...userManagementRoutes,
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
