     return res.err(401, 'Unauthorized')
 
   Article.destroy req.article._id, (err) ->
-    debug err if err
     return next err if err
     res.send present req.article
 


  data = _.extend(req.article, req.body)
  Article.save data, req.user?.access_token, (err, article) ->
    debug err if err
    return next err if err
    res.send present article


# Fetch & attach a req.article middleware
@find = (req, res, next) ->
  Article.find (req.params.id or req.query.article_id), (err, article) ->
    return next err if err
    return res.err 404, 'Article not found.' unless req.article = article
    if req.article?.published then next() else setUser(req, res, next)
