UNPKG

@modelcontextprotocol/sdk

Version:

Model Context Protocol implementation for TypeScript

9 lines 451 B
import { RequestHandler } from "express"; /** * Middleware to handle unsupported HTTP methods with a 405 Method Not Allowed response. * * @param allowedMethods Array of allowed HTTP methods for this endpoint (e.g., ['GET', 'POST']) * @returns Express middleware that returns a 405 error if method not in allowed list */ export declare function allowedMethods(allowedMethods: string[]): RequestHandler; //# sourceMappingURL=allowedMethods.d.ts.map