[data.search] Update routes to not accept query (#154869)

This commit is contained in:
Lukas Olson 2023-04-12 21:44:02 -07:00 committed by GitHub
parent d83f1fe5c1
commit fb44bebf58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,8 +22,6 @@ export function registerSearchRoute(router: DataPluginRouter): void {
id: schema.maybe(schema.string()),
}),
query: schema.object({}, { unknowns: 'allow' }),
body: schema.object(
{
legacyHitsTotal: schema.maybe(schema.boolean()),
@ -78,8 +76,6 @@ export function registerSearchRoute(router: DataPluginRouter): void {
strategy: schema.string(),
id: schema.string(),
}),
query: schema.object({}, { unknowns: 'allow' }),
},
},
async (context, request, res) => {