Merge branch 'hotfix/21.56.9' into master
[gitter.git] / public / js / routes / create-routes.js
blob2a689637bb49f0ec6c25caae4c61be22f5a02052
1 'use strict';
3 const presentCreateRoomDialog = require('../ensured/present-create-room-dialog');
4 const presentCreateCommunityDialog = require('../ensured/present-create-community-dialog');
5 const presentExportUserDataDialog = require('../ensured/present-export-user-data-dialog');
7 function createRoutes() {
8 return {
9 'createroom(/:name)': function(initialRoomName) {
10 presentCreateRoomDialog({
11 initialRoomName: initialRoomName
12 });
15 createcommunity: function() {
16 presentCreateCommunityDialog();
19 'export-user-data': function() {
20 presentExportUserDataDialog();
25 module.exports = createRoutes;