File size: 670 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 |
import page from '@automattic/calypso-router';
import { getLanguageRouteParam } from '@automattic/i18n-utils';
import { makeLayout, render as clientRender } from 'calypso/controller';
import controller from './controller';
export default function () {
const lang = getLanguageRouteParam();
page(
[
`/start/${ lang }`,
`/start/:flowName/${ lang }`,
`/start/:flowName/:stepName/${ lang }`,
`/start/:flowName/:stepName/:stepSectionName/${ lang }`,
],
controller.saveInitialContext,
controller.redirectWithoutLocaleIfLoggedIn,
controller.redirectToFlow,
controller.setSelectedSiteForSignup,
controller.start,
makeLayout,
clientRender
);
}
|