fix(tradein): Caddy strip только /trade-in для API #374

Merged
lekss361 merged 1 commit from fix/tradein-caddy-api-strip into main 2026-05-20 22:17:54 +00:00
Owner

handle_path /trade-in/api/* стрипал /trade-in/api целиком → FastAPI получал /v1/trade-in/estimate и возвращал 404. Заменил на handle + uri strip_prefix /trade-in — теперь backend получает корректный /api/v1/trade-in/estimate.

`handle_path /trade-in/api/*` стрипал `/trade-in/api` целиком → FastAPI получал `/v1/trade-in/estimate` и возвращал 404. Заменил на `handle + uri strip_prefix /trade-in` — теперь backend получает корректный `/api/v1/trade-in/estimate`.
lekss361 added 1 commit 2026-05-20 22:17:49 +00:00
handle_path /trade-in/api/* стрипал /trade-in/api целиком — FastAPI
получал /v1/trade-in/estimate и возвращал 404. FastAPI router на
/api/v1/trade-in/*, нужен strip только префикса basePath /trade-in.
lekss361 merged commit 259f5ece4d into main 2026-05-20 22:17:54 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lekss361/gendesign#374
No description provided.