Remove pdf export code
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user