UNPKG

tsunamy

Version:

A new typesript framework

14 lines (13 loc) 478 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("reflect-metadata"); function PostMapping(value) { return function (target, property, descriptor) { value = value || {}; value.functionName = property; var listMapping = Reflect.getMetadata('PostMapping', target) || []; listMapping.push(value); Reflect.defineMetadata('PostMapping', listMapping, target); }; } exports.PostMapping = PostMapping;