Hey Astro people. I am using import.meta.glob to get a list of files in my pages directory, and I need to know the url for the file, so that I can associate the route for each file with an action to perform (e.g. authenticate). I see that .astro and .md have the url property, but "Other files" do not. So, for an endpoint that is a .js or .ts file, there is no url property.
You can see the docs describing this here: https://5-0-0-beta.docs.astro.build/en/guides/imports/#import-type-utilities
You can see endpoint files being considered "Other files" here: https://5-0-0-beta.docs.astro.build/en/guides/imports/#other-files
I can "fix" this by adding export const url = '/my/path'; to my endpoint file, but that seems unnecessary as I have to repeat the route based on the directory structure. Is there a reason why .js and .ts don't have the url property? Is this something I could put a PR into for? I'm assuming that an "endpoint" is a .js or .ts file in the /pages directory that conforms to the spec found at https://docs.astro.build/en/guides/endpoints/.
Thanks!