Skip to content

Commit db51fc5

Browse files
committed
feat: add AuthGuard component for enhanced route protection
1 parent 2986101 commit db51fc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/src/main.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import router from "./routes/routes";
55
import { App as AntdApp, Spin, ConfigProvider } from "antd";
66
import "./index.css";
77
import TopLoadingBar from "./components/TopLoadingBar";
8+
import AuthGuard from "./components/AuthGuard";
89
import { store } from "./store";
910
import { Provider } from "react-redux";
1011
import theme from "./theme";
@@ -94,6 +95,7 @@ async function bootstrap() {
9495
<AntdApp>
9596
<Suspense fallback={<Spin />}>
9697
<TopLoadingBar />
98+
<AuthGuard />
9799
<RouterProvider router={router} />
98100
</Suspense>
99101
</AntdApp>

0 commit comments

Comments
 (0)