overleaf/services/web/app/coffee/Features/Dropbox/DropboxRouter.coffee

16 lines
576 B
CoffeeScript
Raw Normal View History

2014-08-13 16:26:18 +00:00
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')