UNPKG

kamboja-express

Version:

KambojaJS engine implementation using ExpressJs

24 lines (23 loc) 897 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var kamboja_1 = require("kamboja"); var RedirectActionResult = (function (_super) { tslib_1.__extends(RedirectActionResult, _super); function RedirectActionResult(path) { var _this = _super.call(this, undefined) || this; _this.path = path; _this.engine = "Express"; return _this; } RedirectActionResult.prototype.execute = function (request, response, routeInfo) { return tslib_1.__awaiter(this, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) { response.redirect(this, this.path); return [2 /*return*/]; }); }); }; return RedirectActionResult; }(kamboja_1.Core.ActionResult)); exports.RedirectActionResult = RedirectActionResult;