mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
16 lines
393 B
TypeScript
16 lines
393 B
TypeScript
import * as Koa from 'koa';
|
|
|
|
declare function KoaProxies(path: string, options: KoaProxies.IKoaProxiesOptions): Koa.Middleware;
|
|
|
|
declare namespace KoaProxies {
|
|
interface IKoaProxiesOptions {
|
|
target: string;
|
|
changeOrigin?: boolean;
|
|
logs?: boolean | ((ctx: Koa.Context, target: string) => void);
|
|
agent?: any;
|
|
rewrite?: (path: string) => string;
|
|
}
|
|
}
|
|
|
|
export = KoaProxies;
|