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

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

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

export const CouponLogRoutes: Route[] = [
  {
    path: '',
    component: ListComponent,
    resolve: {
      CouponLogs: CouponLogsResolver,
    },
  },
  {
    path: ':id',
    component: ViewComponent,
    resolve: {
      users: UserResolver,
    },
  },
];
