forked from Hithomelabs/CFTunnels
- Angular 17 with standalone components - Angular Material + Tailwind CSS - OIDC authorization code flow with Authentik - Role-based access control (USER, DEVELOPER, APPROVER, ADMIN) - Dashboard with pending requests, tunnel list, and create mapping - Nginx reverse proxy to backend API - Multi-container Docker Compose setup (frontend, backend, postgres) - Environment-based configuration (local, test, prod)
25 lines
579 B
TypeScript
25 lines
579 B
TypeScript
import { Routes } from '@angular/router';
|
|
import { authGuard } from './core/auth/auth.guard';
|
|
import { loginGuard } from './core/auth/login.guard';
|
|
|
|
export const routes: Routes = [
|
|
{
|
|
path: '',
|
|
canActivate: [authGuard],
|
|
loadComponent: () =>
|
|
import('./features/dashboard/dashboard.component').then(
|
|
(m) => m.DashboardComponent
|
|
),
|
|
},
|
|
{
|
|
path: 'login',
|
|
canActivate: [loginGuard],
|
|
loadComponent: () =>
|
|
import('./features/login/login.component').then((m) => m.LoginComponent),
|
|
},
|
|
{
|
|
path: '**',
|
|
redirectTo: '',
|
|
},
|
|
];
|