Routing & Layouts
The Provision Portal UI is a single Angular 21 application with its own Angular Router configuration and two layout shells.
Layout shells
| Layout | Role |
|---|---|
|
Wraps the unauthenticated area ( |
|
Wraps all authenticated pages (menu, sidebar, content). |
Routes
Routes are defined in src/app/app.routes.ts. The default path redirects to /single-device; an
unknown path (**) also redirects there.
| Path | Component | Guards |
|---|---|---|
|
|
— |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Route guards
-
authGuard— allows the route when an auth token is present insessionStorage; otherwise redirects to/login. -
PermissionGuard— blocks users whose permission isUSERfrom/user-management, redirecting them to/single-device. -
ConfigGuard— gates/deactivate-serviceon the server feature flagdeactivateService.enable; if disabled, redirects to/single-device.
Base path
The app is served under /provision-portal/ in the container (the Nginx location block plus SPA
fallback to index.html). Deep links and refreshes resolve through try_files … index.html.