Skip to content

Commit

Permalink
Merge pull request #1246 from SynBioHub/addToCollBug
Browse files Browse the repository at this point in the history
Add to coll bug
  • Loading branch information
cjmyers authored May 16, 2020
2 parents 5dceedc + a535a4f commit 1bee290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ function App () {
app.post('/public/:collectionId/:displayId/:version/icon', requireUser, uploadToMemory.single('collectionIcon'), actions.updateCollectionIcon)

app.get('/public/:collectionId/:displayId/:version/removeCollection', requireAdmin, actions.removeCollection)
app.get('/public/:collectionId/:displayId/:version/addToCollection', requireAdmin, views.addToCollection)
app.post('/public/:collectionId/:displayId/:version/addToCollection', requireAdmin, views.addToCollection)
app.get('/public/:collectionId/:displayId/:version/addToCollection', requireUser, views.addToCollection)
app.post('/public/:collectionId/:displayId/:version/addToCollection', requireUser, views.addToCollection)

app.get('/user/:userId/:collectionId/:displayId/:version/removeCollection', requireUser, actions.removeCollection)
app.get('/user/:userId/:collectionId/:displayId/:version/addToCollection', requireUser, views.addToCollection)
Expand Down

0 comments on commit 1bee290

Please sign in to comment.