Files
SnowLuma/.pnpm-store/v11/files/6d/b2efee487a200121ebecbfb96971aa1f0937a15aa35cbf58d5466e1bc0e5b75f164dadb34b37d12edc6690613003a52a22ab032c1180bd1b4e078c098476b3
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

9 lines
451 B
Plaintext

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