markato icon indicating copy to clipboard operation
markato copied to clipboard

Directly addressable URL for raw plain text shared song source

Open Tembrel opened this issue 8 years ago • 1 comments

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.

Tembrel avatar Aug 26 '16 02:08 Tembrel

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.

jsrmath avatar Aug 26 '16 03:08 jsrmath