/**
 * @aurora-catalyst-generated
 * @source cliter/o-auth
 */
import type { Routes } from '@angular/router';
import { accessTokenListResolver } from './access-token/data-access/access-token.resolvers';
import { applicationListResolver } from './application/data-access/application.resolvers';
import { authorizationCodeListResolver } from './authorization-code/data-access/authorization-code.resolvers';
import { clientListResolver } from './client/data-access/client.resolvers';
import { refreshTokenListResolver } from './refresh-token/data-access/refresh-token.resolvers';
import { scopeListResolver } from './scope/data-access/scope.resolvers';

export const oAuthRoutes: Routes = [
  {
    path: 'scope',
    loadComponent: () => import('./scope/features/scope-list.component'),
    resolve: { pagination: scopeListResolver },
  },
  {
    path: 'application',
    loadComponent: () => import('./application/features/application-list.component'),
    resolve: { pagination: applicationListResolver },
  },
  {
    path: 'client',
    loadComponent: () => import('./client/features/client-list.component'),
    resolve: { pagination: clientListResolver },
  },
  {
    path: 'access-token',
    loadComponent: () => import('./access-token/features/access-token-list.component'),
    resolve: { pagination: accessTokenListResolver },
  },
  {
    path: 'refresh-token',
    loadComponent: () => import('./refresh-token/features/refresh-token-list.component'),
    resolve: { pagination: refreshTokenListResolver },
  },
  {
    path: 'authorization-code',
    loadComponent: () => import('./authorization-code/features/authorization-code-list.component'),
    resolve: { pagination: authorizationCodeListResolver },
  },
];
