Skip to content

Instantly share code, notes, and snippets.

@jordangarcia
Created July 12, 2018 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordangarcia/e335a9921d7e349abe182ce2daafa6ad to your computer and use it in GitHub Desktop.
Save jordangarcia/e335a9921d7e349abe182ce2daafa6ad to your computer and use it in GitHub Desktop.
{
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