import {Routes} from '@angular/router';
import {NotFoundComponent} from './not-found/not-found.component';
import {PasswordSigninComponent} from './passwordSignin/passwordSignin.component';
import {SmstokenSigninComponent} from './smstokenSignin/smstokenSignin.component';
import {GuestGuard} from '../../classes/guards/guest.guard';

export const AuthRoutes: Routes = [
  {
    path: '',
    children: [{
      path: '404',
      component: NotFoundComponent,
    }, {
      path: 'passwordSignin',
      component: PasswordSigninComponent,
      canActivate: [GuestGuard]
    },
      {
        path: 'smstokenSignin',
        component: SmstokenSigninComponent,
        canActivate: [GuestGuard]
      },
    ]
  }
];
