aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/router.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/router.tsx')
-rw-r--r--src/router.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/router.tsx b/src/router.tsx
new file mode 100644
index 0000000..8128f45
--- /dev/null
+++ b/src/router.tsx
@@ -0,0 +1,11 @@
+import { createBrowserRouter } from 'react-router'
+import App from './App'
+import { pageRoutes } from './route-config'
+
+export const router = createBrowserRouter([
+ {
+ path: '/',
+ Component: App,
+ children: pageRoutes,
+ },
+])