frommeandClaude Opus 5 b27639c7fa fix: keep the travel date code to a single path segment
The dateCode requirement added with the export route was `.+`, which
replaces Symfony's default `[^/]+` and lets the segment span slashes.
`/api/travels/{dateId}/{hotelId}/{dateTo}/availability` was then matched
by byCode() -- declared above it -- with dateCode swallowing all four
segments, so availability answered 404 "Not found" instead of reaching
the upstream call.

Adds a routing test that reflects the controller's own attributes, so
both the declaration order and the segment class stay guarded. Neither
fails loudly on its own: a path falling through to the wrong route reads
like an endpoint that exists and holds no data.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-09-29 14:19:24 +02:00
2024-11-16 10:43:27 +01:00
2026-08-31 09:31:00 +02:00
2026-03-16 11:59:09 +01:00
2026-08-31 09:31:00 +02:00
2026-08-31 09:31:00 +02:00
2024-11-27 11:31:48 +01:00
2026-05-04 17:19:35 +02:00
S
Description
No description provided
15 MiB
0 Stars 4 Watchers 0 Forks
Languages
PHP 88.6%
Twig 10.1%
JavaScript 0.9%
CSS 0.4%