mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
Remove pdf export code
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
66ad73d853
commit
97312b5ed3
16 changed files with 4 additions and 96 deletions
|
@ -110,14 +110,6 @@ exports.doAction = function (req, res, next) {
|
|||
case 'info':
|
||||
noteActions.getInfo(req, res, note)
|
||||
break
|
||||
case 'pdf':
|
||||
if (config.allowPDFExport) {
|
||||
noteActions.createPDF(req, res, note)
|
||||
} else {
|
||||
logger.error('PDF export failed: Disabled by config. Set "allowPDFExport: true" to enable. Check the documentation for details')
|
||||
errors.errorForbidden(res)
|
||||
}
|
||||
break
|
||||
case 'gist':
|
||||
noteActions.createGist(req, res, note)
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue