mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-18 12:02:40 -05:00
12 lines
452 B
CoffeeScript
12 lines
452 B
CoffeeScript
|
DropboxHandler = require "./DropboxHandler"
|
||
|
ProjectGetter = require "../Project/ProjectGetter"
|
||
|
|
||
|
module.exports = DropboxProjectController =
|
||
|
getStatus: (req, res, next) ->
|
||
|
project_id = req.params.Project_id
|
||
|
ProjectGetter.getProject project_id, {owner_ref: 1}, (error, project) ->
|
||
|
return next(error) if error?
|
||
|
DropboxHandler.getUserRegistrationStatus project.owner_ref, (error, status) ->
|
||
|
return next(error) if error?
|
||
|
res.json status
|
||
|
|