Add middleware to allow method overrides.