/**
 * Created by TaoHuang on 2017/2/21.
 */

'use strict';

const helpers = global.yoho.helpers;
const TYPE = require('../type');

module.exports = [
    {
        type: TYPE.redirect,
        origin: /^\/(.*)/,
        target: (req) => {
            return helpers.urlFormat(`/guang${req.url}`, null);
        }
    }
];