Add session auth: FastAPI login/logout/me endpoints, uv-managed deps, fix cookie on JSONResponse

This commit is contained in:
brutsalvadi
2026-04-23 15:29:56 +02:00
parent f5a38b2ca8
commit 3632ab3e9a
7 changed files with 910 additions and 17 deletions
+2 -7
View File
@@ -17,13 +17,8 @@ fi
# Start edit sidecar if requested
if [[ "$*" == *"--edit"* ]]; then
echo "Starting edit sidecar on :8001..."
UVICORN="$ROOT/.venv/bin/uvicorn"
if [ ! -x "$UVICORN" ]; then
echo "Setting up Python venv..."
python3 -m venv "$ROOT/.venv"
"$ROOT/.venv/bin/pip" install -r "$ROOT/edit/requirements.txt" -q
fi
(cd "$ROOT" && "$UVICORN" edit.server:app --reload --port 8001) &
uv sync -q
uv run uvicorn edit.server:app --reload --port 8001 &
SIDECAR_PID=$!
trap "kill $SIDECAR_PID 2>/dev/null" EXIT
fi