Add Cooldown to Tpds routes

This commit is contained in:
Shane Kilkelly 2017-05-09 13:54:11 +01:00
parent 149e38855f
commit 8e90b7fb9b

View file

@ -221,10 +221,10 @@ module.exports = class Router
apiRouter.get '/project/:Project_id/doc/:doc_id', AuthenticationController.httpAuth, DocumentController.getDocument
apiRouter.post '/project/:Project_id/doc/:doc_id', AuthenticationController.httpAuth, DocumentController.setDocument
apiRouter.post '/user/:user_id/update/*', AuthenticationController.httpAuth, TpdsController.mergeUpdate
apiRouter.post '/user/:user_id/update/*', AuthenticationController.httpAuth, CooldownMiddlewear.freezeProject, TpdsController.mergeUpdate
apiRouter.delete '/user/:user_id/update/*', AuthenticationController.httpAuth, TpdsController.deleteUpdate
apiRouter.post '/project/:project_id/contents/*', AuthenticationController.httpAuth, TpdsController.updateProjectContents
apiRouter.post '/project/:project_id/contents/*', AuthenticationController.httpAuth, CooldownMiddlewear.freezeProject, TpdsController.updateProjectContents
apiRouter.delete '/project/:project_id/contents/*', AuthenticationController.httpAuth, TpdsController.deleteProjectContents
webRouter.post "/spelling/check", AuthenticationController.requireLogin(), SpellingController.proxyRequestToSpellingApi