overleaf/services/web/app/coffee/Features/Project/ProjectApiController.coffee
2017-03-28 11:33:37 +01:00

12 lines
308 B
CoffeeScript

ProjectDetailsHandler = require("./ProjectDetailsHandler")
logger = require("logger-sharelatex")
module.exports =
getProjectDetails : (req, res, next)->
{project_id} = req.params
ProjectDetailsHandler.getDetails project_id, (err, projDetails)->
return next(err) if err?
res.json(projDetails)