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

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

import { CasinoMoneysResolver } from './resolvers/casino-money.resolver';
import { UserResolver } from '../user/resolvers/user.resolver';

export const casinoMoneyRoutes: Route[] = [
  {
    path: '',
    component: ListComponent,
    resolve: {
      casinoMoneys: CasinoMoneysResolver,
    },
  },
  {
    path: ':id',
    component: ViewComponent,
    resolve: {
      users: UserResolver,
    },
  },
];
