#!/usr/bin/env bash set -euo pipefail ROOT="${1:?usage: ROLLBACK.sh }" SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)" cp "$SCRIPT_DIR/BASELINE_admin_auth.ts" "$ROOT/apps/backend/src/routes/admin/auth.ts" cp "$SCRIPT_DIR/BASELINE_rate-limit.test.ts" "$ROOT/apps/backend/src/middleware/rate-limit.test.ts" printf 'restored admin auth route and rate-limit test in %s\n' "$ROOT"