UNPKG

routing-controllers

Version:

Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.

19 lines 589 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Render = Render; const index_1 = require("../index"); /** * Specifies a template to be rendered by a controller action. * Must be applied on a controller action. */ function Render(template) { return function (object, methodName) { (0, index_1.getMetadataArgsStorage)().responseHandlers.push({ type: 'rendered-template', target: object.constructor, method: methodName, value: template, }); }; } //# sourceMappingURL=Render.js.map