import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { ResetPasswordComponent, ResetPasswordConfirmComponent } from './resetpassword.component';

import { ApiConsumerTokenResolve, TestParameterResolve, UserTokenResolve } from '../core/shared';

export const resetpassordRoutes: Routes = [
    {
        path: '',
        component: ResetPasswordComponent,
        resolve: {
            token: ApiConsumerTokenResolve,
            auth: UserTokenResolve,
            test: TestParameterResolve
        }
    },
    {
        path: ':token',
        component: ResetPasswordConfirmComponent,
        resolve: {
            token: ApiConsumerTokenResolve,
            auth: UserTokenResolve,
            test: TestParameterResolve
        }
    }
];

@NgModule({
    imports: [RouterModule.forChild(resetpassordRoutes)],
    exports: [RouterModule]
})
export class ResetPasswordRoutingModule { }
