mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
14 lines
482 B
CoffeeScript
14 lines
482 B
CoffeeScript
|
SecurityManager = require('../../managers/SecurityManager')
|
||
|
AuthenticationController = require('../Authentication/AuthenticationController')
|
||
|
ProjectUploadController = require "./ProjectUploadController"
|
||
|
|
||
|
module.exports =
|
||
|
apply: (app) ->
|
||
|
app.post '/project/new/upload',
|
||
|
AuthenticationController.requireLogin(),
|
||
|
ProjectUploadController.uploadProject
|
||
|
app.post '/Project/:Project_id/upload',
|
||
|
SecurityManager.requestCanModifyProject,
|
||
|
ProjectUploadController.uploadFile
|
||
|
|