import { createBrowserRouter } from 'react-router-dom'
import PrivateRoute from './privateRoute'
import Login from '../views/login'
import React from 'react'
import Forum from '../views/forum'

const router = createBrowserRouter([
    {
        path: '/',
        element: <Forum /> // 论坛主页面
    },
    {
        path: '/login',
        element: <Login /> // 登录页作为独立路由
    }
]
)

export default router