Initial service implementation
ci / test (push) Successful in 11s

This commit is contained in:
Luna
2026-07-16 20:16:05 +00:00
commit 18d0b333d2
27 changed files with 2953 additions and 0 deletions
Executable
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
base_url="${1:-http://127.0.0.1:3000}"
repo="${2:-https://github.com/octocat/Hello-World.git}"
health="$(curl -fsS "$base_url/health")"
loc_json="$(curl -fsS "$base_url/loc?repo=$repo")"
loc_text="$(curl -fsS "$base_url/loc.txt?repo=$repo")"
printf 'health: %s\n' "$health"
printf 'loc json: %s\n' "$loc_json"
printf 'loc text: %s\n' "$loc_text"