summaryrefslogtreecommitdiffstats
path: root/webapp/routes/route_help.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/routes/route_help.jsx')
-rw-r--r--webapp/routes/route_help.jsx66
1 files changed, 66 insertions, 0 deletions
diff --git a/webapp/routes/route_help.jsx b/webapp/routes/route_help.jsx
new file mode 100644
index 000000000..37c3c4884
--- /dev/null
+++ b/webapp/routes/route_help.jsx
@@ -0,0 +1,66 @@
+// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import * as RouteUtils from 'routes/route_utils.jsx';
+
+export default {
+ path: 'help',
+ indexRoute: {onEnter: (nextState, replace) => replace('/help/messaging')},
+ childRoutes: [
+ {
+ getComponents: (location, callback) => {
+ System.import('components/help/help_controller.jsx').then(RouteUtils.importComponentSuccess(callback));
+ },
+ childRoutes: [
+ {
+ path: 'messaging',
+ indexRoute: {
+ getComponents: (location, callback) => {
+ System.import('components/help/components/messaging.jsx').then(RouteUtils.importComponentSuccess(callback));
+ }
+ }
+ },
+ {
+ path: 'composing',
+ indexRoute: {
+ getComponents: (location, callback) => {
+ System.import('components/help/components/composing.jsx').then(RouteUtils.importComponentSuccess(callback));
+ }
+ }
+ },
+ {
+ path: 'mentioning',
+ indexRoute: {
+ getComponents: (location, callback) => {
+ System.import('components/help/components/mentioning.jsx').then(RouteUtils.importComponentSuccess(callback));
+ }
+ }
+ },
+ {
+ path: 'formatting',
+ indexRoute: {
+ getComponents: (location, callback) => {
+ System.import('components/help/components/formatting.jsx').then(RouteUtils.importComponentSuccess(callback));
+ }
+ }
+ },
+ {
+ path: 'attaching',
+ indexRoute: {
+ getComponents: (location, callback) => {
+ System.import('components/help/components/attaching.jsx').then(RouteUtils.importComponentSuccess(callback));
+ }
+ }
+ },
+ {
+ path: 'commands',
+ indexRoute: {
+ getComponents: (location, callback) => {
+ System.import('components/help/components/commands.jsx').then(RouteUtils.importComponentSuccess(callback));
+ }
+ }
+ }
+ ]
+ }
+ ]
+};