Created
August 4, 2021 12:29
-
-
Save BrianMwas/6a6f10368ef70789175bf6d486e7d693 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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