markato
markato copied to clipboard
Directly addressable URL for raw plain text shared song source
It would be nice to be able to get the source of a (shared) song as raw text via a URL. For example:
https://markato.studio/?song=e5kf5bgOctlcpFIDefS8FzRO2TQAgXhCCf1&raw=true
could produce a text/plain
response whose body is just the source for the song, in much the same way that GitHub provides a Raw button for its source files.
Because I'm using Firebase and not writing my own backend, this would be tricky to do. I'm actually not really sure if it's possible with my current setup, because I don't think you can set headers once the page is loaded.