Add query compatibility parameter
ci / test (push) Successful in 9s

This commit is contained in:
Luna
2026-07-16 20:30:50 +00:00
parent 18d0b333d2
commit 9905d0f496
3 changed files with 33 additions and 1 deletions
+4
View File
@@ -22,6 +22,10 @@ Tiny API that clones a Git repo and counts its non-empty lines of code.
- `GET /health`
- Health plus queue/cache stats.
You can also pass `query=<git-url>` as a compatibility alias for `repo`.
This is considered unsafe and discouraged because the name is too generic and easier to misuse or collide with upstream tooling.
Prefer `repo` unless you explicitly need legacy compatibility.
## Auth
No auth by default. If `API_KEY` is set, send it as either: