Is there an existing issue for this?
What happened?
Description
When running the PictoPy backend locally using uvicorn on port 8000,
the Swagger UI (/docs) sends API requests to http://localhost:52123,
which causes all API calls to fail with "Failed to fetch".
Steps to Reproduce
- Run backend using: python -m uvicorn main:app --reload
- Open http://127.0.0.1:8000/health → works correctly
- Open http://127.0.0.1:8000/docs
- Try any endpoint (e.g. POST /folders/add-folder)
- The request is sent to http://localhost:52123 and fails
Expected Behavior
Swagger UI should use the same server URL/port as the running backend (8000).
Actual Behavior
Swagger UI uses a hardcoded server URL pointing to port 52123.
Additional Context
Backend is running correctly on port 8000.
I would like to work on fixing this issue.
Record