I'm using Craft in headless mode. It's a multisite setup different languages. I know that's it's possible to query an element by it's uri. Is there a way to check if a full path or an absolute url matches an craft element inside an module or plugin controller action?
For example i would like to check i a path like this examples matches an element on any site and return the entry and site:
/my-example-element
/de/my-example-element
Is there any helper or built in method where i can pass the path and retrieve the matching element?