UNPKG

@mee4dy/crud

Version:

Create a backend and frontend in 5 minutes! With our powerful full stack crud system, customize it to suit you.

3 lines (2 loc) 423 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@nestjs/common");class s{constructor(e){this.middleware=e}intercept(e,t){const c=e.switchToHttp().getRequest();return this.middleware&&this.middleware(c),t.handle()}}const n=r=>{const e=new s(r),t=o.UseInterceptors(e);return o.applyDecorators(t)};exports.UseMiddleware=n; //# sourceMappingURL=use-middleware.decorator.cjs.map