This project uses Vue Router, which we initialize in src/router/index.ts
, with routes defined in src/router/routes.ts
.
We only have one layout that is placed in src/layouts/MainLayout.vue
file. This layout will be the root path and all other path will be the children of this path. There is an execption for the login page that is using it's own layout.
We define all module routes in the file src/app/constants/submoduleList.constant.ts
. Then there's already a function that will generate those module name into a route path.