Skip to content

Add a /redirect/number/{n} route to simulate redirect chains - #6

Merged
mattiasgeniar merged 1 commit into
mainfrom
add-redirect-number-route
May 5, 2026
Merged

Add a /redirect/number/{n} route to simulate redirect chains#6
mattiasgeniar merged 1 commit into
mainfrom
add-redirect-number-route

Conversation

@mattiasgeniar

Copy link
Copy Markdown
Contributor

Replaces the legacy ohdear.app/test-routes/redirect/number/{n} endpoint that the uptime-checker test suite still depends on, so we can drop that dependency. Each hit returns a 302 to /redirect/number/{n-1} and the chain terminates with a 204 at zero. Capped at 20 to keep abuse off the table.

@mattiasgeniar
mattiasgeniar merged commit 0afc4cc into main May 5, 2026
3 checks passed
@mattiasgeniar
mattiasgeniar deleted the add-redirect-number-route branch May 5, 2026 13:10
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