registry/internal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam jones 6bb62d160e
fix: add HTTP middleware to redirect trailing slash URLs to canonical form (#420)
Resolves #419 where URLs with trailing slashes like `/v0/servers/` would
return empty responses instead of proper data.

**Changes**:
- Added TrailingSlashMiddleware that redirects trailing slash URLs with
301 status
- Preserves root path ('/') without redirecting
- Uses HTTP 301 Moved Permanently to indicate canonical form
- Added comprehensive test coverage for the middleware

This follows REST API best practices and is consistent with how major Go
web frameworks handle trailing slash normalization.

Generated with [Claude Code](https://claude.ai/code)

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: adam jones <domdomegg@users.noreply.github.com>
2025-09-10 13:14:59 -07:00
..
api fix: add HTTP middleware to redirect trailing slash URLs to canonical form (#420) 2025-09-10 13:14:59 -07:00
auth Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
config Add registry validators (#350) 2025-09-04 22:45:59 +01:00
database Use a connection pool instead of a single DB connection (#408) 2025-09-10 06:45:30 -07:00
importer Clean up schema by simplifying version structure (#379) 2025-09-08 14:32:59 -07:00
service Clean up schema by simplifying version structure (#379) 2025-09-08 14:32:59 -07:00
telemetry Add OpenTelemetry metrics instrumentation (#290) 2025-08-21 14:23:37 +01:00
validators Ban 'latest' as a reserved version string (#413) 2025-09-10 17:52:08 +00:00