From 14510ce19470c176a7f286d4a3238e813f7dc959 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Wed, 22 Jun 2016 10:30:01 -0400
Subject: Adding webpack code splitting (#3377)

---
 webapp/routes/route_create_team.jsx | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 webapp/routes/route_create_team.jsx

(limited to 'webapp/routes/route_create_team.jsx')

diff --git a/webapp/routes/route_create_team.jsx b/webapp/routes/route_create_team.jsx
new file mode 100644
index 000000000..354d7a39c
--- /dev/null
+++ b/webapp/routes/route_create_team.jsx
@@ -0,0 +1,25 @@
+import * as RouteUtils from 'routes/route_utils.jsx';
+
+export default {
+    path: 'create_team',
+    getComponents: (location, callback) => {
+        System.import('components/create_team/create_team_controller.jsx').then(RouteUtils.importComponentSuccess(callback));
+    },
+    indexRoute: {onEnter: (nextState, replace) => replace('/create_team/display_name')},
+    getChildRoutes: RouteUtils.createGetChildComponentsFunction(
+        [
+            {
+                path: 'display_name',
+                getComponents: (location, callback) => {
+                    System.import('components/create_team/components/display_name.jsx').then(RouteUtils.importComponentSuccess(callback));
+                }
+            },
+            {
+                path: 'team_url',
+                getComponents: (location, callback) => {
+                    System.import('components/create_team/components/team_url.jsx').then(RouteUtils.importComponentSuccess(callback));
+                }
+            }
+        ]
+    )
+};
-- 
cgit v1.2.3-1-g7c22

