"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var common_1 = require("../../common");
var Router_1 = require("./Router");
function push(path, res) {
    if (res && common_1.R.is(Function, res.redirect)) {
        res.redirect(path);
    }
    else {
        Router_1.Router.push(path);
    }
}
exports.push = push;
//# sourceMappingURL=route.js.map