Files
o2o-weather/admin/src/App.tsx

22 lines
734 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { BrowserRouter, Route, Routes } from 'react-router'
import { AdminLayout } from './pages/AdminLayout'
import { CardsPage } from './pages/CardsPage'
import { HistoryPage } from './pages/HistoryPage'
import { RenderPage } from './pages/RenderPage'
export default function App() {
return (
<BrowserRouter>
<Routes>
{/* npm run card 가 찍는 화면: 카드 한 장만, 1080×1350 */}
<Route path="render" element={<RenderPage />} />
<Route element={<AdminLayout />}>
<Route index element={<CardsPage />} />
<Route path="history" element={<HistoryPage />} />
<Route path="*" element={<CardsPage />} />
</Route>
</Routes>
</BrowserRouter>
)
}