fix(auth): connexion admin - token snake_case, routes GoRouter, profil (Closes #84)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-09 22:36:52 +01:00
co-authored by Cursor
parent 480f4a9396
commit 18af5c9034
4 changed files with 39 additions and 16 deletions
+14
View File
@@ -19,6 +19,8 @@ import '../screens/auth/am_register_step2_screen.dart';
import '../screens/auth/am_register_step3_screen.dart';
import '../screens/auth/am_register_step4_screen.dart';
import '../screens/home/home_screen.dart';
import '../screens/administrateurs/admin_dashboardScreen.dart';
import '../screens/home/parent_screen/ParentDashboardScreen.dart';
import '../screens/unknown_screen.dart';
// --- Provider Instances ---
@@ -47,6 +49,18 @@ class AppRouter {
path: '/home',
builder: (BuildContext context, GoRouterState state) => const HomeScreen(),
),
GoRoute(
path: '/admin-dashboard',
builder: (BuildContext context, GoRouterState state) => const AdminDashboardScreen(),
),
GoRoute(
path: '/parent-dashboard',
builder: (BuildContext context, GoRouterState state) => const ParentDashboardScreen(),
),
GoRoute(
path: '/am-dashboard',
builder: (BuildContext context, GoRouterState state) => const HomeScreen(),
),
// --- Parent Registration Flow ---
ShellRoute(