import { Plugin , CoreSetup , CoreStart } from 'opensearch-dashboards/server' ; import { registerRoutes } from './routes' ; export class RoutingExamplePlugin implements Plugin < { } , { } > { public setup ( core ) { const router = core . http . createRouter ( ) ; registerRoutes ( router ) ; return { } ; } public start ( core ) { return { } ; } public stop ( ) { } }