mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
12 lines
459 B
CoffeeScript
12 lines
459 B
CoffeeScript
|
AuthorizationMiddlewear = require('../Authorization/AuthorizationMiddlewear')
|
||
|
AuthenticationController = require('../Authentication/AuthenticationController')
|
||
|
LinkedFilesController = require "./LinkedFilesController"
|
||
|
|
||
|
module.exports =
|
||
|
apply: (webRouter) ->
|
||
|
webRouter.post '/project/:project_id/linked_file',
|
||
|
AuthenticationController.requireLogin(),
|
||
|
AuthorizationMiddlewear.ensureUserCanWriteProjectContent,
|
||
|
LinkedFilesController.createLinkedFile
|
||
|
|