UNPKG

routing-controllers

Version:

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

16 lines 475 B
import { getMetadataArgsStorage } from '../index'; /** * Sets Location header with given value to the response. * Must be applied on a controller action. */ export function Location(url) { return function (object, methodName) { getMetadataArgsStorage().responseHandlers.push({ type: 'location', target: object.constructor, method: methodName, value: url, }); }; } //# sourceMappingURL=Location.js.map