1 | import { ExpressRequestHandler, Request } from '@loopback/express';
|
2 | import { OpenApiSpec } from '@loopback/openapi-v3';
|
3 | import express from 'express';
|
4 | import { PathParams } from 'express-serve-static-core';
|
5 | import { ServeStaticOptions } from 'serve-static';
|
6 | import { ResolvedRoute } from './route-entry';
|
7 | import { RouterSpec } from './router-spec';
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare class ExternalExpressRoutes {
|
16 | protected _externalRoutes: express.Router;
|
17 | protected _staticRoutes: express.Router;
|
18 | protected _specForExternalRoutes: RouterSpec;
|
19 | get routerSpec(): RouterSpec;
|
20 | registerAssets(path: PathParams, rootDir: string, options?: ServeStaticOptions): void;
|
21 | mountRouter(basePath: string, router: ExpressRequestHandler, spec?: RouterSpec): void;
|
22 | find(request: Request): ResolvedRoute;
|
23 | }
|
24 | export declare function rebaseOpenApiSpec<T extends Partial<OpenApiSpec>>(spec: T, basePath: string): T;
|