"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// 请求代理配置
// 中间件所在位置：app/middleware/proxy.ts
// 更多配置请查看：https://github.com/chimurai/http-proxy-middleware
// 路由匹配规则请查看：https://github.com/pillarjs/path-to-regexp
const PROXY = {
    '/weather': {
        target: 'http://t.weather.sojson.com',
        changeOrigin: true,
        pathRewrite: {
            '^/weather/city': '/api/weather/city'
        }
    },
    '/api': {
        target: 'http://0.0.0.0:5103',
        changeOrigin: true,
        pathRewrite: {
            '^/api': '/v1.0'
        }
    }
};
exports.default = PROXY;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJveHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29uZmlnL2FkZGl0aW9uL3Byb3h5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsU0FBUztBQUNULGtDQUFrQztBQUNsQyw0REFBNEQ7QUFDNUQsdURBQXVEO0FBQ3ZELE1BQU0sS0FBSyxHQUFHO0lBQ1osVUFBVSxFQUFFO1FBQ1YsTUFBTSxFQUFFLDZCQUE2QjtRQUNyQyxZQUFZLEVBQUUsSUFBSTtRQUNsQixXQUFXLEVBQUU7WUFDWCxnQkFBZ0IsRUFBRSxtQkFBbUI7U0FDdEM7S0FDRjtJQUNELE1BQU0sRUFBRTtRQUNOLE1BQU0sRUFBRSxxQkFBcUI7UUFDN0IsWUFBWSxFQUFFLElBQUk7UUFDbEIsV0FBVyxFQUFFO1lBQ1gsT0FBTyxFQUFFLE9BQU87U0FDakI7S0FDRjtDQUNGLENBQUE7QUFFRCxrQkFBZSxLQUFLLENBQUEifQ==