- Add UserController with GET/PUT /me, PUT /me/password, PUT /me/email - Add UserService with profile update, password change, email change - Add UserServiceTest with 7 unit tests - Add IamDtos: UpdateProfileRequest, ChangePasswordRequest, ChangeEmailRequest - Add Angular profile page with edit profile, change password, change email - Add Angular UserService for profile API calls - Add profile route and navigation item
14 lines
541 B
TypeScript
14 lines
541 B
TypeScript
export interface NavItem {
|
|
label: string;
|
|
path: string;
|
|
roles: string[];
|
|
}
|
|
|
|
export const NAV_ITEMS: NavItem[] = [
|
|
{label: 'Übersicht', path: '/dashboard', roles: ['ADMIN', 'MEMBER']},
|
|
{label: 'Zählpunkte', path: '/dashboard/metering-points', roles: ['ADMIN', 'MEMBER']},
|
|
{label: 'Mein Profil', path: '/dashboard/profile', roles: ['ADMIN', 'MEMBER']},
|
|
{label: 'Benutzerverwaltung', path: '/dashboard/approvals', roles: ['ADMIN']},
|
|
{label: 'Energiegemeinschaften', path: '/dashboard/energy-communities', roles: ['ADMIN']}
|
|
];
|