20 lines
541 B
Dart
20 lines
541 B
Dart
import 'package:go_router/go_router.dart';
|
|
import 'package:maibu_satabot_v2/core/router/route_paths.dart';
|
|
import 'package:maibu_satabot_v2/features/auth/presentation/pages/login_page.dart';
|
|
|
|
import '../pages/register_page.dart';
|
|
|
|
class AuthRoutes {
|
|
// 返回一个 List<RouteBase>
|
|
static List<RouteBase> routes = [
|
|
GoRoute(
|
|
path: RoutePaths.login,
|
|
builder: (context, state) => const LoginPage(),
|
|
),
|
|
GoRoute(
|
|
path: RoutePaths.register,
|
|
builder: (context, state) => const RegisterPage(),
|
|
),
|
|
];
|
|
}
|