fix(resource): use / instead of empty string for list/create route paths #3

Merged
i.bahlai merged 1 commit from fix/fastapi-empty-path into main 2026-03-30 09:38:49 +00:00

FastAPI >=0.115 rejects routes where both prefix and path are empty strings. Changed _register_list and _register_create to use "/" as the path.

Fixes integration test import failures in print-estimate-api.

FastAPI >=0.115 rejects routes where both prefix and path are empty strings. Changed `_register_list` and `_register_create` to use `"/"` as the path. Fixes integration test import failures in `print-estimate-api`.
fix(resource): use '/' instead of '' for list/create route paths
Some checks failed
CI Pipeline - Development / Code Quality Check (pull_request) Successful in 3m23s
CI Pipeline - Development / Run Tests (pull_request) Successful in 5m50s
Publish to PyPI on Tag / Build and Publish (push) Failing after 12m12s
0ed2365cda
FastAPI >=0.115 rejects routes where both prefix and path are empty
strings. Changed _register_list and _register_create to use '/'
as the path so they work with FastAPI 0.135+.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
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
CobraPack/repository!3
No description provided.