import { Route } from '@angular/router';

import { ListComponent } from './components/list.component';
import { ViewComponent } from '../../member/user/components/view.component';

import { AdminSessionsResolver } from './resolvers/admin-session.resolver';
import { UserResolver } from '../../member/user/resolvers/user.resolver';

export const adminSessionRoutes: Route[] = [
  {
    path: '',
    component: ListComponent,
    resolve: {
      adminSessions: AdminSessionsResolver,
    },
  },
  {
    path: ':id',
    component: ViewComponent,
    resolve: {
      users: UserResolver,
    },
  },
];
