fix(contract) Correct GET /image/:key to reflect the real wildcard path #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-image-route-path-pattern"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #6.
Summary
api-contract/src/images.tsmodeledGET /image/:keywith a single dynamic segment. The real backend route is a generic Express wildcard (router.use), and the real storage keys are multi-segment.recipes/{recipeId}/{imageId}.{ext}(recipe images — the one #6 mentioned) andusers/{userId}/{avatarId}.{ext}(user avatars — found while verifying, not in the original issue).pathto/image/*and rewrote the JSDoc to describe both shapes.Test plan
api-contract's own typecheck passes.