UNPKG

@plumier/core

Version:

Delightful Node.js Rest Framework

16 lines (15 loc) 467 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.response = void 0; const types_1 = require("./types"); var response; (function (response) { function json(body) { return new types_1.ActionResult(body); } response.json = json; function redirect(path) { return new types_1.RedirectActionResult(path); } response.redirect = redirect; })(response = exports.response || (exports.response = {}));