Skip to content

Commit

Permalink
Merge pull request #409 from zestedesavoir/hostfix-latex-document
Browse files Browse the repository at this point in the history
Fix for LaTeX document maximum size limit
  • Loading branch information
StaloneLab authored Aug 1, 2020
2 parents 3d5b1ec + 26c99d1 commit ec916c5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/zmarkdown/server/routes/endpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,29 @@ const express = require('express')
const controllerFactory = require('../factories/controller-factory')

const router = express.Router()
const limit = '300kb'

router.post(
'/html',
bodyParser.json({limit: '300kb'}),
bodyParser.json({limit}),
controllerFactory('html'),
)

router.post(
'/latex',
bodyParser.json({limit: '300kb'}),
bodyParser.json({limit}),
controllerFactory('latex'),
)

router.post(
'/epub',
bodyParser.json({limit: '300kb'}),
bodyParser.json({limit}),
controllerFactory('epub'),
)

router.post(
'/latex-document',
bodyParser.json({limit: '300kb'}),
bodyParser.json({limit: '3mb'}),
controllerFactory('latex', require('../templates/latex-document')),
)

Expand Down

0 comments on commit ec916c5

Please sign in to comment.