Files
foxhunt/services/api/.sqlx/query-aea06694ee3e20e90795f0b3a9c43bfd0a233ea5223af844e5b2c402938db416.json
jgrusewski e50ea55064 feat: create services/api/ — unified gRPC gateway with tonic-web
Copied from api_gateway, removed REST handlers (port 8080),
added tonic-web + CORS for grpc-web browser access.
Binary renamed: api-gateway → api

Changes:
- Package name: api-gateway → api
- Deleted src/handlers/ (REST ML endpoints on port 8080)
- Added tonic-web 0.13 + tower-http CORS layer
- Server::builder().accept_http1(true) for grpc-web
- CORS_ORIGINS env var (default http://localhost:5173)
- Metrics server on port 9091 (axum) preserved
- All 95 lib tests pass, 0 clippy warnings
- Added services/api to workspace members

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 23:32:46 +01:00

18 lines
891 B
JSON

{
"db_name": "PostgreSQL",
"query": "\n INSERT INTO mfa_config (\n id, user_id, totp_secret_encrypted, totp_algorithm, totp_digits, totp_period,\n is_enabled, is_verified, enrolled_at, verified_at, backup_codes_remaining\n ) VALUES ($1, $2, $3, 'SHA1', 6, 30, true, true, $4, $4, 10)\n ON CONFLICT (user_id) DO UPDATE SET\n totp_secret_encrypted = EXCLUDED.totp_secret_encrypted,\n is_enabled = true,\n is_verified = true,\n verified_at = $4,\n backup_codes_remaining = 10\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid",
"Uuid",
"Bytea",
"Timestamptz"
]
},
"nullable": []
},
"hash": "aea06694ee3e20e90795f0b3a9c43bfd0a233ea5223af844e5b2c402938db416"
}