From 1c03d01f94bda2a923b39863b6b84761b47ef565 Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 16 May 2022 11:36:41 +0700 Subject: [PATCH] Add auth required to sessions via direct path --- lib/main.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index e385b58..787efd6 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -7,6 +7,7 @@ import 'package:nekoya_flutter/screens/login.dart'; import 'package:nekoya_flutter/screens/register.dart'; import 'package:nekoya_flutter/components/menu.dart'; import 'package:nekoya_flutter/utils/url_strategy.dart'; +import 'package:nekoya_flutter/utils/navigation_auth.dart'; void main() { WidgetsFlutterBinding.ensureInitialized(); @@ -45,6 +46,7 @@ class _NekoyaState extends State { '/register': (context) => const Register(), '/products' : (context) => const Menu(initialScreen: 1,), '/cart' : (context) => const Menu(initialScreen: 3,), + '/sessions': (context) => const NavigationAuth(route: Menu(initialScreen: 0,)), }, ); }