jonnybarnes.uk/routes
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonny Barnes 7ce256baa5
Return 404 for non-numeric like and bookmark IDs
Constrain the likes/{like} and bookmarks/{bookmark} routes to numeric
IDs. Previously a junk URL such as /likes/twcamp^share|twsrc^ios was
passed to route model binding, and Postgres rejected the text-vs-integer
comparison with a QueryException, returning a 500 instead of a 404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 19:01:28 +00:00
..
api.php chore: Refactor configuration files based on Laravel 10 skeleton 2023-06-09 18:31:53 +01:00
channels.php Follow laravel upgrade guide 2020-10-19 19:41:50 +01:00
console.php Follow laravel upgrade guide 2020-10-19 19:41:50 +01:00
web.php Return 404 for non-numeric like and bookmark IDs 2026-10-29 19:01:28 +00:00