Skip to content

fix: digest archive route ordering#1917

Merged
bokelley merged 2 commits into
mainfrom
bokelley/louisville-v12
Apr 4, 2026
Merged

fix: digest archive route ordering#1917
bokelley merged 2 commits into
mainfrom
bokelley/louisville-v12

Conversation

@bokelley
Copy link
Copy Markdown
Contributor

@bokelley bokelley commented Apr 4, 2026

Summary

Move /digest/archive route before /:date to prevent Express matching "archive" as a date parameter.

What happened

/digest/archive returned 400 "Invalid date format" because Express matched /:date first, treating "archive" as a date string.

Fix

Register /archive before /:date in the Express router. Removed duplicate route that was at the bottom.

🤖 Generated with Claude Code

bokelley and others added 2 commits April 4, 2026 16:54
Express matched "archive" as a :date parameter because /:date was
registered first. Moved /archive handler above /:date and removed
the duplicate at the bottom.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bokelley bokelley merged commit f6a1fe2 into main Apr 4, 2026
12 checks passed
@bokelley bokelley deleted the bokelley/louisville-v12 branch April 4, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant