mirror of
https://github.com/versity/versitygw.git
synced 2026-05-13 07:21:28 +00:00
Add options for embedders to register Fiber routes and middleware before the S3 route table is initialized. WithRoute registers a top-level route with explicit method and path matching. WithMiddleware registers prefix middleware that can handle a request or call ctx.Next() to continue into the S3 stack. Add coverage for route registration order when a top-level route and catch-all middleware are both configured.
12 KiB
12 KiB