autowp/autowp-frontend

View on GitHub
src/app/articles/articles-routing.module.ts

Summary

Maintainability
A
2 hrs
Test Coverage
import {Routes} from '@angular/router';
 
Similar blocks of code found in 2 locations. Consider refactoring.
export const routes: Routes = [
{
loadComponent: () => import('./article/article.component').then((m) => m.ArticlesArticleComponent),
path: ':catname',
},
{
loadComponent: () => import('./list/list.component').then((m) => m.ListComponent),
path: '',
pathMatch: 'full',
title: $localize`Articles`,
},
];