mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Fix /teachers/demo to work when not logged in
This commit is contained in:
parent
eba4afec17
commit
ebab07d736
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module.exports.setup = (app) ->
|
|||
|
||||
TrialRequest = require '../models/TrialRequest'
|
||||
app.get('/db/trial.request', mw.trialRequests.fetchByApplicant, mw.auth.checkHasPermission(['admin']), mw.rest.get(TrialRequest))
|
||||
app.post('/db/trial.request', mw.auth.checkLoggedIn(), mw.trialRequests.post)
|
||||
app.post('/db/trial.request', mw.trialRequests.post)
|
||||
app.get('/db/trial.request/:handle', mw.auth.checkHasPermission(['admin']), mw.rest.getByHandle(TrialRequest))
|
||||
app.put('/db/trial.request/:handle', mw.auth.checkHasPermission(['admin']), mw.trialRequests.put)
|
||||
|
||||
|
|
Loading…
Reference in a new issue