if(str::contains($_SERVER['REQUEST_URI'], '/my-special-url')) { // Include some files } It would in one way be better to fetch the url with a route, but by the time I run the route it will be too late. I need to run it directly.
Is there a nicer way instead of the code above that runs directly (not a route)?
JoeClark replied
421 weeks ago