Gitter migration: Point people to app.gitter.im (rollout pt. 1)
[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       });
13     },
15     createcommunity: function() {
16       presentCreateCommunityDialog();
17     },
19     'export-user-data': function() {
20       presentExportUserDataDialog();
21     }
22   };
25 module.exports = createRoutes;