Add middleware dir