wu981526092's picture
add
f479a01
raw
history blame
902 Bytes
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
import { Layout } from './components/Layout'
import { Landing } from './pages/Landing'
import { Templates } from './pages/Templates'
import { Playground } from './pages/Playground'
import { Models } from './pages/Models'
import { Settings } from './pages/Settings'
function App() {
return (
<Router>
<Routes>
{/* Landing page without sidebar */}
<Route path="/" element={<Landing />} />
{/* App pages with sidebar layout */}
<Route path="/" element={<Layout />}>
<Route path="templates" element={<Templates />} />
<Route path="playground" element={<Playground />} />
<Route path="models" element={<Models />} />
<Route path="settings" element={<Settings />} />
</Route>
</Routes>
</Router>
)
}
export default App