Adds thorough test coverage and README documentation for the two download URL patterns introduced in #5.

What changed

Tests (tests/routes/download.test.ts):

  • Download text file by file_path query param — verifies body, Content-Type, and Content-Disposition
  • Download text file by file_id query param
  • Download binary file by file_path — verifies raw bytes, Content-Type: application/octet-stream, and Content-Length
  • 404 for missing file (query param form)
  • Download text file via path-segment form (/files/download/path/to/file.txt)
  • Download binary file via path-segment form
  • 404 for missing file (path-segment form)
  • Deeply nested path via path-segment form

README (README.md):

  • New “Download File” section documenting both URL forms with example requests and response headers

Validation

All 8 new tests pass alongside the existing suite:

bun test tests/routes/download.test.ts
8 pass, 0 fail

/claim #5

Claim

Total prize pool $10
Total paid $0
Status Pending
Submitted April 26, 2026
Last updated April 26, 2026

Contributors

AL

Alex Kim

@selenaalpha77-sketch

100%

Sponsors

TS

tscircuit

@tscircuit

$10