mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 21:22:16 +00:00
15 lines
576 B
CoffeeScript
15 lines
576 B
CoffeeScript
DropboxUserController = require './DropboxUserController'
|
|
DropboxWebhookController = require './DropboxWebhookController'
|
|
|
|
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')
|
|
|
|
|
|
|