chore : delete auth package because each project has different auth , must be separated auth logic
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
import 'package:rasadyar_inspection/presentation/pages/auth/logic.dart';
|
||||
import 'package:rasadyar_inspection/presentation/pages/auth/view.dart';
|
||||
import 'package:rasadyar_inspection/presentation/pages/filter/logic.dart';
|
||||
import 'package:rasadyar_inspection/presentation/pages/pages.dart';
|
||||
import 'package:rasadyar_inspection/presentation/pages/users/logic.dart';
|
||||
@@ -12,10 +14,10 @@ sealed class InspectionPages {
|
||||
GetPage(
|
||||
name: InspectionRoutes.init,
|
||||
page: () => RootPage(),
|
||||
|
||||
middlewares:[ AuthMiddleware()],
|
||||
binding: BindingsBuilder(() {
|
||||
Get.lazyPut(() =>RootLogic());
|
||||
Get.lazyPut(() =>InspectorFilterLogic());
|
||||
Get.lazyPut(() => RootLogic());
|
||||
Get.lazyPut(() => InspectorFilterLogic());
|
||||
Get.lazyPut(() => InspectionMapLogic());
|
||||
Get.lazyPut(() => BaseLogic());
|
||||
Get.lazyPut(() => UsersLogic());
|
||||
@@ -59,5 +61,10 @@ sealed class InspectionPages {
|
||||
page: () => AddMobileInspectorPage(),
|
||||
binding: BindingsBuilder.put(() => AddMobileInspectorLogic()),
|
||||
),
|
||||
GetPage(
|
||||
name: InspectionRoutes.auth,
|
||||
page: () => AuthPage(),
|
||||
binding: BindingsBuilder.put(() => AuthLogic()),
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user