Created
July 12, 2018 21:48
-
-
Save jordangarcia/e335a9921d7e349abe182ce2daafa6ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
match: '/v2/projects/:proj_id/experiments/:experiment_id', | |
prereq: (ctx) => { | |
return flux.evalaute(getters.isFullStackProject) | |
}, | |
handle: [ | |
[ | |
ABExperimentEditorSection, | |
...RoutingFns.standardNavHandlers(NavConstants.NavWidth.COLLAPSED, NavConstants.NavItems.PERSONALIZATION), | |
RoutingFns.parseProjectId, | |
/* | |
* This route is a catch-all for tabs which havent been migrated to Pages. As such, it must | |
* fetch the code linting bundle because at least one of those routes needs it. | |
* See WEB-1549 | |
**/ | |
(ctx, next) => BundleSplitHelper.getCodeLintingBundleModules().then(next), | |
], | |
RoutingFns.disallowCustomProjects, | |
(ctx, next) => ABExperimentEditorSection.pages.editor.routingSetup(ctx, next), | |
() => { | |
RoutingFns.renderDashboard(ABExperimentEditorSection.pages.editor.component); | |
}, | |
], | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment