Custom json output - use base url rather than /index.json

I have an API section of my site that outputs only JSON files. Right now, the base url http://localhost:1313/api/characters/absa gives a 404, while http://localhost:1313/api/characters/absa/index.json serves the file that I’d like at the former url instead. Not finding anything in the custom output docs or searching the forum to get the result I’m looking for, help much appreciated. Thanks

You will need to create a redirect on your host, or a fallback directory index.

Ah wow ok, was hoping that wouldn’t be the case but thank you