Skip to content

Instantly share code, notes, and snippets.

@BrianMwas
Created August 4, 2021 12:29
Show Gist options
  • Save BrianMwas/6a6f10368ef70789175bf6d486e7d693 to your computer and use it in GitHub Desktop.
Save BrianMwas/6a6f10368ef70789175bf6d486e7d693 to your computer and use it in GitHub Desktop.
// Other code
GetPage(
name: AppLinks.DASHBOARD,
page: () => Dashboard(),
middlewares: [
// Add here
AuthGuard(),
],
children: [
GetPage(
name: AppLinks.PRODUCTS,
page: () => Products(),
),
GetPage(
name: AppLinks.FAVORITES,
page: () => Favorites(),
),
GetPage(
name: AppLinks.ORDERS,
page: () => Orders(),
),
]),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment