Skip to content

Commit

Permalink
Upgrades: Rename routes -> paths
Browse files Browse the repository at this point in the history
  • Loading branch information
umurkontaci committed Feb 19, 2016
1 parent d4618e8 commit a662efb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/my-sites/upgrades/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const controller = require( 'my-sites/controller' ),
paths = require( './paths' ),
adTracking = require( 'analytics/ad-tracking' );

function registerMultiPage( { routes, handlers } ) {
routes.forEach( path => page( path, ...handlers ) );
function registerMultiPage( { paths, handlers } ) {
paths.forEach( path => page( path, ...handlers ) );
}

function getCommonHandlers( { noSitePath = paths.domainManagementRoot(), warnIfJetpack = true } = {} ) {
Expand Down Expand Up @@ -46,7 +46,7 @@ module.exports = function() {
);

registerMultiPage( {
routes: [
paths: [
paths.domainManagementEmail( ':site', ':domain' ),
paths.domainManagementEmail( ':site' )
],
Expand All @@ -57,7 +57,7 @@ module.exports = function() {
} );

registerMultiPage( {
routes: [
paths: [
paths.domainManagementAddGoogleApps( ':site', ':domain' ),
paths.domainManagementAddGoogleApps( ':site' )
],
Expand Down

0 comments on commit a662efb

Please sign in to comment.