Is your feature request related to a problem? Please describe.
Add the ability to view file contents using HTTP similar to the ssh soft repo blob ... command
Describe the solution you'd like
New endpoint /<repo>/blob/<rev>/<path> that takes the revision (branch, tag, commit) and path and returns the contents of the file. Accept both content types text/plain & application/octet-stream to return plain text or download the file at path.
Is your feature request related to a problem? Please describe. Add the ability to view file contents using HTTP similar to the
ssh soft repo blob ...
commandDescribe the solution you'd like New endpoint
/<repo>/blob/<rev>/<path>
that takes the revision (branch, tag, commit) and path and returns the contents of the file. Accept both content typestext/plain
&application/octet-stream
to return plain text or download the file at path.https://github.com/charmbracelet/soft-serve/discussions/455