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

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

import { CouponMoneyLogsResolver } from './resolvers/coupon-money-log.resolver';
import { UserResolver } from '../user/resolvers/user.resolver';

export const CouponMoneyLogRoutes: Route[] = [
  {
    path: '',
    component: ListComponent,
    resolve: {
      CouponMoneyLogs: CouponMoneyLogsResolver,
    },
  },
  {
    path: ':id',
    component: ViewComponent,
    resolve: {
      users: UserResolver,
    },
  },
];
