|  | public function findMatchingRoute(string $url): array { | 
    
   
 
function assumes nextcloud is always at the webroot. Could we change that?
for example by changing substr tests by strpos?
or by adding strpos tests after the substr tests, and before the final else clause?
That shouldn't be an issue if you have good unit tests :-)