Open ethanmick opened 5 years ago
I have been thinking about this -- I think we could implement this really nicely by just appending .txt
or .md
(or .json
? .xml
?) to the url and getting the appropriate format. E.g. https://platezero.com/bb/chicken-pot-pie.md
Probably also want some mechanism to export all my recipes, e.g. download a zip archive of all my recipes in Markdown or whatever.
I made some progress on this. Basically adding new routes (NOT nested as an API route), that
listen on /:username/:slug.(txt|md|tex)
and returns the custom type.
text/plain
application/json
text/markdown
text/html