File size: 438 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 |
import config from '@automattic/calypso-config';
import page from '@automattic/calypso-router';
import { makeLayout, render as clientRender } from 'calypso/controller';
import { connect, tokenRedirect } from './controller';
export default (): void => {
if ( config.isEnabled( 'jetpack-cloud' ) ) {
page( '/connect', connect, makeLayout, clientRender );
page( '/connect/oauth/token', tokenRedirect, makeLayout, clientRender );
}
};
|