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

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

import { CasinomoneysResolver } from './resolvers/casinomoney.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,
    },
  },
];
