mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
18 lines
815 B
CoffeeScript
18 lines
815 B
CoffeeScript
DropboxUserController = require './DropboxUserController'
|
|
DropboxWebhookController = require './DropboxWebhookController'
|
|
DropboxProjectController = require "./DropboxProjectController"
|
|
SecurityManager = require "../../managers/SecurityManager"
|
|
|
|
module.exports =
|
|
apply: (app) ->
|
|
app.get '/dropbox/beginAuth', DropboxUserController.redirectUserToDropboxAuth
|
|
app.get '/dropbox/completeRegistration', DropboxUserController.completeDropboxRegistration
|
|
app.get '/dropbox/unlink', DropboxUserController.unlinkDropbox
|
|
|
|
app.get '/dropbox/webhook', DropboxWebhookController.verify
|
|
app.post '/dropbox/webhook', DropboxWebhookController.webhook
|
|
app.ignoreCsrf('post', '/dropbox/webhook')
|
|
|
|
app.get '/project/:Project_id/dropbox/status', SecurityManager.requestIsOwner, DropboxProjectController.getStatus
|
|
|
|
|