mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
add comments to router, downcase route
express has case-insensitive routes
This commit is contained in:
parent
6873c1d972
commit
8a0fa1321d
1 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,9 @@ module.exports = class Router
|
||||||
webRouter.post '/project/:Project_id/settings/admin', AuthorizationMiddlewear.ensureUserCanAdminProject, ProjectController.updateProjectAdminSettings
|
webRouter.post '/project/:Project_id/settings/admin', AuthorizationMiddlewear.ensureUserCanAdminProject, ProjectController.updateProjectAdminSettings
|
||||||
|
|
||||||
webRouter.post '/project/:Project_id/compile', AuthorizationMiddlewear.ensureUserCanReadProject, CompileController.compile
|
webRouter.post '/project/:Project_id/compile', AuthorizationMiddlewear.ensureUserCanReadProject, CompileController.compile
|
||||||
webRouter.get '/Project/:Project_id/output/output.pdf', AuthorizationMiddlewear.ensureUserCanReadProject, CompileController.downloadPdf
|
# Used by the web download buttons, adds filename header
|
||||||
|
webRouter.get '/project/:Project_id/output/output.pdf', AuthorizationMiddlewear.ensureUserCanReadProject, CompileController.downloadPdf
|
||||||
|
# Used by the pdf viewers
|
||||||
webRouter.get /^\/project\/([^\/]*)\/output\/(.*)$/,
|
webRouter.get /^\/project\/([^\/]*)\/output\/(.*)$/,
|
||||||
((req, res, next) ->
|
((req, res, next) ->
|
||||||
params =
|
params =
|
||||||
|
|
Loading…
Reference in a new issue