keys routing
This commit is contained in:
parent
391594acc1
commit
37899eb98f
2 changed files with 4 additions and 2 deletions
|
|
@ -28,8 +28,9 @@ def get_api_key() -> str:
|
|||
"""Get or create an API key for testing."""
|
||||
global _cached_api_key
|
||||
if _cached_api_key is None:
|
||||
# Use /api/keys to go through frontend proxy (frontend at :3000 proxies /api/* to backend)
|
||||
response = httpx.post(
|
||||
f"{_base_url}/keys",
|
||||
f"{_base_url}/api/keys",
|
||||
json={"name": "SDK Integration Test"},
|
||||
timeout=30.0,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@ const SKIP_TESTS = process.env.SKIP_SDK_INTEGRATION_TESTS === "true";
|
|||
|
||||
// Create API key for tests
|
||||
async function createApiKey(): Promise<string> {
|
||||
const response = await fetch(`${BASE_URL}/keys`, {
|
||||
// Use /api/keys to go through frontend proxy (frontend at :3000 proxies /api/* to backend)
|
||||
const response = await fetch(`${BASE_URL}/api/keys`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ name: "TypeScript SDK Integration Test" }),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue