well, let's clean up some more

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-08-18 15:42:17 +02:00
parent e195112c5c
commit f6be17460d
17 changed files with 101 additions and 114 deletions
@@ -14,4 +14,5 @@
* limitations under the License.
*/
export type { RouterOptions } from './router';
export { createRouter } from './router';
@@ -47,6 +47,7 @@ const safeForwardHeaders = [
'user-agent',
];
/** @public */
export interface RouterOptions {
logger: Logger;
config: Config;
@@ -177,6 +178,7 @@ export function buildMiddleware(
return createProxyMiddleware(filter, fullConfig);
}
/** @public */
export async function createRouter(
options: RouterOptions,
): Promise<express.Router> {