mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 18:29:37 -05:00
15 lines
428 B
CoffeeScript
15 lines
428 B
CoffeeScript
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"
|
|
return res.send 500
|
|
req.session.destroy()
|
|
res.json(projDetails)
|
|
|