From a4685927a1f7fe8374a567ee74cc62aad639f4c3 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Mon, 22 Jul 2024 04:36:45 +0900
Subject: user login

---
 frontend/src/main.tsx | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

(limited to 'frontend/src/main.tsx')

diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx
index eb5399f..6019704 100644
--- a/frontend/src/main.tsx
+++ b/frontend/src/main.tsx
@@ -5,10 +5,13 @@ import {
   RouterProvider,
 } from 'react-router-dom';
 import Home from './routes/Home.tsx';
-import Login from './routes/Login.tsx';
+import Login, { loginAction } from './routes/Login.tsx';
 import GolfEntry from './routes/golf/GolfEntry.tsx';
 import GolfPlay from './routes/golf/GolfPlay.tsx';
 import GolfWatch from './routes/golf/GolfWatch.tsx';
+import UserEdit from './routes/users/Edit.tsx';
+import TeamNew from './routes/teams/New.tsx';
+import TeamEdit from './routes/teams/Edit.tsx';
 
 const router = createBrowserRouter([
   {
@@ -18,6 +21,19 @@ const router = createBrowserRouter([
   {
     path: "/login/",
     element: (<Login />),
+    action: loginAction,
+  },
+  {
+    path: "/users/:userId/",
+    element: (<UserEdit />),
+  },
+  {
+    path: "/teams/new/",
+    element: (<TeamNew />),
+  },
+  {
+    path: "/teams/:teamId/",
+    element: (<TeamEdit />),
   },
   {
     path: "/golf/entry/",
-- 
cgit v1.3.1

