Add some documentation about configuring middleware