RSS Git Download  Clone
Raw Blame History
import {Routes} from '@angular/router';

import {Layout} from './layout';
import {Page} from './page/cory-page';
//import {OpenCollective} from './page/cory-open-collective';

//import {Http404} from './modules/material';


export const appRoutes: Routes = [

    {
        path: ':repo',
        component: Layout,
        children: [
            /*
            {
                path: '404',
                component: Http404
            },
             */
            /*
            {
                path: 'open-collective',
                component: OpenCollective
            },
             */
            {
                path: '**',
                component: Page
            }
        ]
    },
    {
        path: '',
        redirectTo: `/matrix`,
//        redirectTo: `/github/${settings.github.defaultRepo}`,
        pathMatch: 'full'
    },
];