diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-15 20:30:39 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-15 20:30:39 -0500 |
| commit | b0b7b771f3b410c5a9031b2ae8e17d9634cdbb65 (patch) | |
| tree | 3655a9545bc8a7a5a8a3a169cd6ecfc523d42e4a /Omni/Namespace.hs | |
| parent | 803f82595f307b66e5bc195a02d38effd0a60b3a (diff) | |
Maintain compatibility with old sequential integer episode URLs by
redirecting them to the new sqid-based URLs with a 301 permanent
redirect.
- Add /episode/{episode_id:int} route for legacy integer IDs - Redirect
with 301 status to indicate permanent move to new URL - Add test to
verify redirect behavior - Mark route as deprecated in documentation
This allows existing shared links to continue working while encouraging
adoption of the new non-sequential URLs. The legacy route can be
removed after a deprecation period.
Amp-Thread-ID:
https://ampcode.com/threads/T-cc5d29f0-454e-4864-8d7e-1ad69a42afa9
Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'Omni/Namespace.hs')
0 files changed, 0 insertions, 0 deletions
