express-rest-decorators - v1.0.0-rc.2
    Preparing search index...

    Function Middleware

    • Marks a class as a global middleware (before or after). The class must implement ExpressMiddlewareInterface (or ExpressErrorMiddlewareInterface for after). Throws TypeError at decoration time if type is invalid.

      Parameters

      • opts: { type: "before" | "after" }

      Returns ClassDecorator