Skip to content

Commit

Permalink
feat(daffio): add packages and api redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Jun 5, 2024
1 parent 9981f5e commit e55ce88
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/daffio/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { DaffioSidebarHeaderComponent } from './core/sidebar/components/sidebar-
import { TemplateComponent } from './core/template/template.component';
import { DaffioRouterNamedViewsEnum } from './named-views/models/named-views.enum';



export const appRoutes: Routes = [
{
path: '',
Expand Down Expand Up @@ -47,6 +49,16 @@ export const appRoutes: Routes = [
{ path: 'docs', loadChildren: () => import('./docs/docs.module').then(m => m.DaffioDocsModule) },
],
},
{
path: 'packages/*',
// TODO: use dynamic redirect once we're on ng18
redirectTo: 'docs/packages/*',
},
{
path: 'api/*',
// TODO: use dynamic redirect once we're on ng18
redirectTo: 'docs/api/*',
},
],
},
{
Expand Down

0 comments on commit e55ce88

Please sign in to comment.