Connect middleware to authorize HTTP methods.