2019-01-18 18:03:45 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { LoginComponent } from './login.component';
|
2020-10-27 17:06:58 +01:00
|
|
|
import { MergeEmailConfirmation } from './merge-email-confirmation/merge-email-confirmation.component';
|
2023-05-23 16:15:11 +02:00
|
|
|
import { UnlinkEmailConfirmation } from './unlink-email-confirmation/unlink-email-confirmation.component';
|
2024-03-26 12:23:56 +01:00
|
|
|
import { AuthGuard } from '@app/core/auth-guard.service';
|
2019-01-18 18:03:45 +01:00
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{ path: '', component: LoginComponent },
|
2024-03-26 12:23:56 +01:00
|
|
|
{
|
|
|
|
path: 'merge/confirmation/:token',
|
|
|
|
component: MergeEmailConfirmation,
|
|
|
|
canActivate: [AuthGuard]
|
|
|
|
},
|
2023-05-23 16:15:11 +02:00
|
|
|
{ path: 'unlink/confirmation/:token', component: UnlinkEmailConfirmation },
|
2019-01-18 18:03:45 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
2019-07-12 16:22:57 +02:00
|
|
|
export class LoginRoutingModule { }
|