UNPKG

@haku-sci/utils

Version:

utils from haku-sci. Library only

11 lines 628 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RESTRICT_SENDER_KEY = void 0; exports.RestrictSender = RestrictSender; const common_1 = require("@nestjs/common"); const restrict_sender_interceptor_1 = require("./restrict-sender.interceptor"); exports.RESTRICT_SENDER_KEY = 'restrict_sender'; function RestrictSender(allowedSenders) { return (0, common_1.applyDecorators)((0, common_1.SetMetadata)(exports.RESTRICT_SENDER_KEY, allowedSenders), (0, common_1.UseInterceptors)(restrict_sender_interceptor_1.RestrictSenderInterceptor)); } //# sourceMappingURL=restrict-sender.decorator.js.map