Skip to content

Commit

Permalink
[feat/hotfix] 로그인하지 않아도 모니터링 화면에 접근 되도록 임시 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
G-hoon committed Aug 24, 2024
1 parent b051f23 commit 52c6cbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BrowserRouter, Route, Routes, Navigate } from "react-router-dom"
import { AuthPage, MonitoringPage, HomePage } from "@/pages"
import { Layout } from "@/layouts"
import RoutePath from "@/constants/routes.json"
import AuthRoute from "@/routes/AuthRoute"
// import AuthRoute from "@/routes/AuthRoute" // ToDo: 로그인 정상화 될때까지 routing 보호하지 않도록 수정

const Router: React.FC = () => {
return (
Expand All @@ -13,9 +13,9 @@ const Router: React.FC = () => {
<Route path="/" element={<HomePage />} />
<Route path="/" element={<Layout />}>
{/* AuthRoute로 보호된 경로를 감쌉니다 */}
<Route element={<AuthRoute />}>
<Route path={RoutePath.MONITORING} element={<MonitoringPage />} />
</Route>
{/* <Route element={<AuthRoute />}> */}
<Route path={RoutePath.MONITORING} element={<MonitoringPage />} />
{/* </Route> */}
<Route path="*" element={<Navigate to="/" replace />} />
</Route>
</Routes>
Expand Down

0 comments on commit 52c6cbb

Please sign in to comment.