overleaf/services/web/app/coffee/Features/Project/ProjectApiController.coffee

15 lines
409 B
CoffeeScript
Raw Normal View History

2014-02-12 05:23:40 -05:00
ProjectDetailsHandler = require("./ProjectDetailsHandler")
logger = require("logger-sharelatex")
module.exports =
getProjectDetails : (req, res)->
{project_id} = req.params
ProjectDetailsHandler.getDetails project_id, (err, projDetails)->
if err?
logger.log err:err, project_id:project_id, "something went wrong getting project details"
2015-07-08 11:56:38 -04:00
return res.sendStatus 500
res.json(projDetails)