28 lines
842 B
Dart
28 lines
842 B
Dart
import 'package:get/get_navigation/src/routes/get_route.dart';
|
|
import 'package:quiz_app/app/middleware/auth_middleware.dart';
|
|
import 'package:quiz_app/feature/home/presentation/home_page.dart';
|
|
import 'package:quiz_app/feature/login/bindings/login_binding.dart';
|
|
import 'package:quiz_app/feature/login/presentation/login_page.dart';
|
|
import 'package:quiz_app/feature/splash_screen/presentation/splash_screen_page.dart';
|
|
|
|
part 'app_routes.dart';
|
|
|
|
class AppPages {
|
|
static List<GetPage<dynamic>> routes = [
|
|
GetPage(
|
|
name: AppRoutes.splashScreen,
|
|
page: () => SplashScreenView(),
|
|
),
|
|
GetPage(
|
|
name: AppRoutes.loginPage,
|
|
page: () => LoginView(),
|
|
binding: LoginBinding(),
|
|
),
|
|
GetPage(
|
|
name: AppRoutes.homePage,
|
|
page: () => HomeView(),
|
|
middlewares: [AuthMiddleware()],
|
|
),
|
|
];
|
|
}
|