You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
503 B
21 lines
503 B
import 'package:get/get.dart';
|
|
import 'package:core/middlewares/index.dart';
|
|
|
|
import 'index.dart';
|
|
import 'route.name.dart';
|
|
|
|
class AccountRoute {
|
|
static List<GetPage> routes = [
|
|
GetPage(
|
|
name: AccountRoutes.login,
|
|
page: () => const LoginPage(),
|
|
binding: LoginBinding(),
|
|
),
|
|
GetPage(
|
|
name: AccountRoutes.profile,
|
|
page: () => const UserInfoPage(),
|
|
binding: UserInfoBinding(),
|
|
middlewares: [AuthorizationMiddleware(AccountRoutes.login)]
|
|
),
|
|
];
|
|
}
|