updated: framework.middleware()

Added new argument: controller