Skip to content

Commit

Permalink
Use new middleware to add/remove watchers from campaigns.
Browse files Browse the repository at this point in the history
  • Loading branch information
basicer committed Apr 27, 2017
1 parent 3a99cc5 commit 78fc86e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/routes/index.coffee
Expand Up @@ -98,6 +98,8 @@ module.exports.setup = (app) ->
app.get('/db/campaign/:handle/patches', mw.patchable.patches(Campaign))
app.post('/db/campaign/:handle/patch', mw.auth.checkLoggedIn(), mw.patchable.postPatch(Campaign, 'campaign'))
app.get('/db/campaign/-/overworld', mw.campaigns.fetchOverworld)
app.post('/db/campaign/:handle/watchers', mw.patchable.joinWatchers(Campaign))
app.delete('/db/campaign/:handle/watchers', mw.patchable.leaveWatchers(Campaign))

app.post('/db/classroom', mw.classrooms.post)
app.get('/db/classroom', mw.classrooms.fetchByCode, mw.classrooms.getByOwner)
Expand Down

0 comments on commit 78fc86e

Please sign in to comment.