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

import { RegistrationComponent } from './registration.component';

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

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

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