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

import { LoginComponent } from './login.component';

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

export const loginRoutes: Routes = [
  {
    path: '',
    component: LoginComponent,
    resolve: {
      token: ApiConsumerTokenResolve,
      auth: UserTokenResolve
    },
    outlet: 'mvp'
  }
];

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