diff --git a/package.json b/package.json index f61cecf..17a8ce2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wardleymaptool", - "version": "1.0.1", + "version": "1.0.2", "description": "A tool for creating Wardley Maps", "keywords": [ "OpenShift", diff --git a/server/router/share.js b/server/router/share.js index bd93c69..5659796 100644 --- a/server/router/share.js +++ b/server/router/share.js @@ -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) { @@ -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