UNPKG

@mee4dy/crud

Version:

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

19 lines (18 loc) 423 B
import { UseInterceptors as c, applyDecorators as s } from "@nestjs/common"; class n { constructor(e) { this.middleware = e; } intercept(e, t) { const o = e.switchToHttp().getRequest(); return this.middleware && this.middleware(o), t.handle(); } } const d = (r) => { const e = new n(r), t = c(e); return s(t); }; export { d as UseMiddleware }; //# sourceMappingURL=use-middleware.decorator.js.map