Skip to content

Commit

Permalink
itemId now in query api and not in path relates #429
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgirard committed Aug 31, 2017
1 parent bc7fa74 commit caec161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/routes/editLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ const editLogsDataKeysBlacklist = ['_id', 'latestChangeBy']



module.exports = Router().get('/:model/:itemId?', requiresAuthentication, getEditLog)
module.exports = Router().get('/:model', requiresAuthentication, getEditLog)

function getEditLog(req, res){
let model = req.params.model
// params
const itemId = req.params.itemId
const itemId = req.query.itemId
const query = req.query

// User has to be central admin to access editLog list feature
Expand Down

0 comments on commit caec161

Please sign in to comment.