mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 14:33:59 -04:00
Handler for test.
This commit is contained in:
parent
2e50d7b15d
commit
070e354eee
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ module.exports = class Handler
|
|||
@sendSuccess(res, documents)
|
||||
|
||||
getById: (req, res, id) ->
|
||||
return @sendNotFoundError(res) # for testing
|
||||
return @sendUnauthorizedError(res) unless @hasAccess(req)
|
||||
|
||||
@getDocumentForIdOrSlug id, (err, document) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue