error: 'class WebServer' has no member named 'addUrl'

I see that many people have similar problem.
The library with a class is rewritten and the old examples stick with the original methods.

Can someone help me with solving this?

I have done some digging and the closest actual method I can find is:

void AsyncWebServer::_rewriteRequest(AsyncWebServerRequest *request){
  for(const auto& r: _rewrites){
    if (r->match(request)){
      request->_url = r->toUrl();

The call in the project is:

  // WS-Handler hinzu
  iot.web.addUrl("testurl", "InfoVorhanden\noderso", "text/plain")

Since I am a stupid newbie, how do I rewrite this to call the new method?