()
| 67 | * Parse the incoming request as urlencoded FormData. |
| 68 | */ |
| 69 | export function createFormDataHandler(): express.Handler { |
| 70 | const defaultMaxBodySize = ceProps('maxBodySize', '1mb'); |
| 71 | const parser = express.urlencoded({ |
| 72 | limit: ceProps('bodyParserLimit', defaultMaxBodySize), |
| 73 | extended: false, |
| 74 | }); |
| 75 | return (req, res, next) => { |
| 76 | parser(req, res, next); |
| 77 | }; |
| 78 | } |
no outgoing calls
no test coverage detected