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

13 lines
308 B
CoffeeScript
Raw Normal View History

2014-02-12 05:23:40 -05:00
ProjectDetailsHandler = require("./ProjectDetailsHandler")
logger = require("logger-sharelatex")
module.exports =
2017-03-28 06:33:37 -04:00
getProjectDetails : (req, res, next)->
2014-02-12 05:23:40 -05:00
{project_id} = req.params
ProjectDetailsHandler.getDetails project_id, (err, projDetails)->
2017-03-28 06:33:37 -04:00
return next(err) if err?
res.json(projDetails)