Add middleware directory.