Skip to content

Commit

Permalink
fix map sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaniel committed Aug 19, 2015
1 parent 6f866e8 commit 065931f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wardleymaptool",
"version": "1.0.1",
"version": "1.0.2",
"description": "A tool for creating Wardley Maps",
"keywords": [
"OpenShift",
Expand Down
4 changes: 2 additions & 2 deletions server/router/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = function(context, db, authmiddleware, mapsmodule, exporter) {
};

module.share = function(req, userId, mapId, mode, callback){
logger.log('sharing map ', mapId, ' as ', mode);
logger.debug('sharing map ', mapId, ' as ', mode);
var anonymousShare = mode === 'anonymous';

if (anonymousShare) {
Expand Down Expand Up @@ -145,7 +145,7 @@ module.exports = function(context, db, authmiddleware, mapsmodule, exporter) {
req.params.name);
});

module.router.put('/:mapid/:mode', authmiddleware, function(req, res) {
module.router.put('/map/:mapid/:mode', authmiddleware, function(req, res) {

var userId = req.user.href;
//TODO: validation of params
Expand Down

0 comments on commit 065931f

Please sign in to comment.