feat(frontend): Day 7 - frontend complete layout finished
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
import { Routes, Route, Navigate } from 'react-router-dom'
|
||||
import MainLayout from './layouts/MainLayout'
|
||||
import HomePage from './pages/HomePage'
|
||||
import AgentPage from './pages/AgentPage'
|
||||
import AgentChatPage from './pages/AgentChatPage'
|
||||
import KnowledgePage from './pages/KnowledgePage'
|
||||
import HistoryPage from './pages/HistoryPage'
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<Routes>
|
||||
<Route path="/" element={<MainLayout />}>
|
||||
<Route index element={<HomePage />} />
|
||||
<Route path="agent/:agentId" element={<AgentPage />} />
|
||||
<Route path="agent/:agentId" element={<AgentChatPage />} />
|
||||
<Route path="knowledge" element={<KnowledgePage />} />
|
||||
<Route path="history" element={<HistoryPage />} />
|
||||
<Route path="*" element={<Navigate to="/" replace />} />
|
||||
</Route>
|
||||
</Routes>
|
||||
|
||||
Reference in New Issue
Block a user