Middleware to handle unsupported HTTP methods with a 405 Method Not Allowed response.
Array of allowed HTTP methods for this endpoint (e.g., ['GET', 'POST'])
Express middleware that returns a 405 error if method not in allowed list
Middleware to handle unsupported HTTP methods with a 405 Method Not Allowed response.