Text/gemini or API to access markdown version of posts

I’d be interested by an API endpoint to grab the .md version of the stuff I post.

What I want is to duplicate my blog automatically to gmi files.
I used to have a custom [outputFormats], [mediaTypes], [outputs] sections in my Hugo config.toml, which would ouput both gmi and html to the output dir. Not sure if I’d be able to do that in MB, as my test website doesn’t work.

Any ideas welcome!