Skip to content

Commit

Permalink
liter formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-gf committed Oct 18, 2024
1 parent 1521dda commit 36e4a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ def teardown_session(*args, **kwargs):
class PathCheckMiddleware(BaseHTTPMiddleware):
async def dispatch(self, request: Request, call_next):
path = request.url.path

for route in fastapi_app.routes:
if path == route.path:
# If path exists, proceed with the request
return await call_next(request)

# If path does not exist, modify the request to forward to the Flask app
if path.startswith("/flask"):
return await call_next(request)
Expand Down

0 comments on commit 36e4a96

Please sign in to comment.