File size: 730 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import page from '@automattic/calypso-router';
import {
makeLayout,
render as clientRender,
redirectToHostingPromoIfNotAtomic,
} from 'calypso/controller';
import { siteSelection, sites, navigation } from 'calypso/my-sites/controller';
import { PERFORMANCE } from 'calypso/sites/components/site-preview-pane/constants';
import { siteDashboard } from 'calypso/sites/controller';
import { sitePerformance } from './controller';
export default function () {
page( '/sites/performance', siteSelection, sites, makeLayout, clientRender );
page(
'/sites/performance/:site',
siteSelection,
redirectToHostingPromoIfNotAtomic,
navigation,
sitePerformance,
siteDashboard( PERFORMANCE ),
makeLayout,
clientRender
);
}
|