Skip to content

Fix routing in unified option#357

Merged
Edwardvaneechoud merged 1 commit intomainfrom
fix/routing-unified-run-method
Mar 16, 2026
Merged

Fix routing in unified option#357
Edwardvaneechoud merged 1 commit intomainfrom
fix/routing-unified-run-method

Conversation

@Edwardvaneechoud
Copy link
Copy Markdown
Owner

This pull request introduces middleware to improve compatibility between the frontend and backend in unified mode, and updates the project version numbers to reflect the new changes.

Middleware for unified mode compatibility:

  • Added a new StripApiPrefixMiddleware class in flowfile/web/__init__.py that strips the /api prefix from incoming requests. This ensures that API requests from the frontend (which use /api/ as a base URL) are correctly routed to the backend, particularly in unified mode where the app is run outside Docker or without an nginx reverse proxy. The middleware is added to the FastAPI app during initialization.

Version updates:

  • Bumped the version number in pyproject.toml from 0.7.1 to 0.7.2 to reflect the new middleware addition.
  • Updated the version in flowfile_frontend/package.json from 0.7.1 to 0.7.2 for consistency across the project.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 16, 2026

Deploy Preview for flowfile-wasm canceled.

Name Link
🔨 Latest commit 9fdde99
🔍 Latest deploy log https://app.netlify.com/projects/flowfile-wasm/deploys/69b86be6aa92d1000822e66c

@Edwardvaneechoud Edwardvaneechoud merged commit a4c97db into main Mar 16, 2026
22 checks passed
@Edwardvaneechoud Edwardvaneechoud deleted the fix/routing-unified-run-method branch March 16, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant