Skip to content

Commit

Permalink
fix: increase payload for creating and updating workpads
Browse files Browse the repository at this point in the history
allow up to 25mb payload

closes elastic#205
  • Loading branch information
w33ble committed Nov 3, 2017
1 parent e87ef3a commit d20f1b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/routes/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export function runApi(server) {
method: 'POST',
path: '/api/canvas/run',
handler: function (request, reply) {
console.log(request.payload);
const { expression, context } = request.payload;
if (!expression) return reply({ error: '"expression" key is required' }).code(400);
handleRequest(request, reply, expression, typeof context === 'undefined' ? null : context);
Expand Down
2 changes: 2 additions & 0 deletions server/routes/workpad.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export function workpad(server) {
server.route({
method: 'POST',
path: routePrefix,
config: { payload: { maxBytes: 26214400 } }, // 25MB payload limit
handler: function (request, reply) {
createWorkpad(request)
.then(formatResponse(reply))
Expand All @@ -104,6 +105,7 @@ export function workpad(server) {
server.route({
method: 'PUT',
path: `${routePrefix}/{id}`,
config: { payload: { maxBytes: 26214400 } }, // 25MB payload limit
handler: function (request, reply) {
updateWorkpad(request)
.then(formatResponse(reply))
Expand Down

0 comments on commit d20f1b9

Please sign in to comment.