mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
16 lines
329 B
CoffeeScript
16 lines
329 B
CoffeeScript
|
logger = require("logger-sharelatex")
|
||
|
projectDeleter = require("./ProjectDeleter")
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
module.exports =
|
||
|
|
||
|
deleteProject: (req, res)->
|
||
|
project_id = req.params.Project_id
|
||
|
logger.log project_id:project_id, "deleting project"
|
||
|
projectDeleter.deleteProject project_id, (err)->
|
||
|
if err?
|
||
|
res.send 500
|
||
|
else
|
||
|
res.send 200
|