mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
This commit is contained in:
parent
91633924ea
commit
851196a951
2 changed files with 24 additions and 0 deletions
|
@ -24,6 +24,12 @@ export function initializeCreateWorkpadRoute(deps: RouteInitializerDeps) {
|
|||
validate: {
|
||||
body: WorkpadSchema,
|
||||
},
|
||||
options: {
|
||||
body: {
|
||||
maxBytes: 26214400,
|
||||
accepts: ['application/json'],
|
||||
},
|
||||
},
|
||||
},
|
||||
catchErrorHandler(async (context, request, response) => {
|
||||
if (!request.body) {
|
||||
|
|
|
@ -64,6 +64,12 @@ export function initializeUpdateWorkpadRoute(deps: RouteInitializerDeps) {
|
|||
}),
|
||||
body: WorkpadSchema,
|
||||
},
|
||||
options: {
|
||||
body: {
|
||||
maxBytes: 26214400,
|
||||
accepts: ['application/json'],
|
||||
},
|
||||
},
|
||||
},
|
||||
catchErrorHandler(async (context, request, response) => {
|
||||
return workpadUpdateHandler(
|
||||
|
@ -84,6 +90,12 @@ export function initializeUpdateWorkpadRoute(deps: RouteInitializerDeps) {
|
|||
}),
|
||||
body: WorkpadSchema,
|
||||
},
|
||||
options: {
|
||||
body: {
|
||||
maxBytes: 26214400,
|
||||
accepts: ['application/json'],
|
||||
},
|
||||
},
|
||||
},
|
||||
catchErrorHandler(async (context, request, response) => {
|
||||
return workpadUpdateHandler(
|
||||
|
@ -111,6 +123,12 @@ export function initializeUpdateWorkpadAssetsRoute(deps: RouteInitializerDeps) {
|
|||
// unknowns and then validate in the handler
|
||||
body: schema.object({}, { allowUnknowns: true }),
|
||||
},
|
||||
options: {
|
||||
body: {
|
||||
maxBytes: 26214400,
|
||||
accepts: ['application/json'],
|
||||
},
|
||||
},
|
||||
},
|
||||
async (context, request, response) => {
|
||||
return workpadUpdateHandler(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue