2022-02-03 18:06:44 +02:00
|
|
|
import 'package:auto_route/auto_route.dart';
|
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
import 'package:immich_mobile/modules/login/views/login_page.dart';
|
|
|
|
import 'package:immich_mobile/modules/home/views/home_page.dart';
|
|
|
|
import 'package:immich_mobile/routing/auth_guard.dart';
|
2022-02-11 04:40:11 +02:00
|
|
|
import 'package:immich_mobile/shared/models/immich_asset.model.dart';
|
2022-02-03 18:06:44 +02:00
|
|
|
import 'package:immich_mobile/shared/views/backup_controller_page.dart';
|
2022-02-11 04:40:11 +02:00
|
|
|
import 'package:immich_mobile/modules/asset_viewer/views/image_viewer_page.dart';
|
2022-02-06 08:07:56 +02:00
|
|
|
import 'package:immich_mobile/shared/views/video_viewer_page.dart';
|
2022-02-03 18:06:44 +02:00
|
|
|
|
|
|
|
part 'router.gr.dart';
|
|
|
|
|
|
|
|
@MaterialAutoRouter(
|
|
|
|
replaceInRouteName: 'Page,Route',
|
|
|
|
routes: <AutoRoute>[
|
|
|
|
AutoRoute(page: LoginPage, initial: true),
|
|
|
|
AutoRoute(page: HomePage, guards: [AuthGuard]),
|
|
|
|
AutoRoute(page: BackupControllerPage, guards: [AuthGuard]),
|
|
|
|
AutoRoute(page: ImageViewerPage, guards: [AuthGuard]),
|
2022-02-06 08:07:56 +02:00
|
|
|
AutoRoute(page: VideoViewerPage, guards: [AuthGuard]),
|
2022-02-03 18:06:44 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
class AppRouter extends _$AppRouter {
|
|
|
|
AppRouter() : super(authGuard: AuthGuard());
|
|
|
|
}
|