* Closes @56832 Migrates uses of the saved objects client to the internal and context scoped clients exposed in the new platform core setup * moves apm server, common, and typings dirs to the new plugin directory * fixes path imports and type errors * fixes some lint errors * fixes CI failure. Use internal saved objects client like before. * uses the context-scoped saved objects client for saving runtime APM indices, and uses the internal saved objects client when creating apm index pattern, so that any user who navigates to apm can trigger it * fixes the type check error by updating import paths * renamed files and directories to snake_case to pass scripts/check_file_casing * rebase fixes and commit filename case changes * moves get_indices_privileges.ts out of legacy path
16 lines
512 B
TypeScript
16 lines
512 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
import { RouteFactoryFn, HttpMethod, Params } from './typings';
|
|
|
|
export function createRoute<
|
|
TName extends string,
|
|
TReturn,
|
|
TMethod extends HttpMethod = 'GET',
|
|
TParams extends Params = {}
|
|
>(fn: RouteFactoryFn<TName, TMethod, TParams, TReturn>) {
|
|
return fn;
|
|
}
|