Skip to content

Commit 9678d3a

Browse files
Update router middleware
Signed-off-by: Lukasz Gryglicki <lgryglicki@cncf.io> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent 6db2482 commit 9678d3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cla-backend-legacy/internal/api/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
func NewRouter(h *Handlers) http.Handler {
1616
r := chi.NewRouter()
1717
r.Use(chimw.Recoverer)
18+
r.Use(chimw.StripSlashes)
1819
// Legacy-style logging lines for request paths (used by existing log rollups).
1920
r.Use(middleware.RequestLog)
2021
r.Use(middleware.CORS)
@@ -219,7 +220,6 @@ func RegisterRoutes(r chi.Router, h *Handlers) {
219220
r.Post("/send-authority-email", h.SendAuthorityEmailV2)
220221

221222
r.Get("/repository-provider/{provider}/sign/{installation_id}/{github_repository_id}/{change_request_id}", h.SignRequestV2)
222-
r.Get("/repository-provider/{provider}/sign/{installation_id}/{github_repository_id}/{change_request_id}/", h.SignRequestV2)
223223

224224
r.Get("/repository-provider/{provider}/oauth2_redirect", h.Oauth2RedirectV2)
225225

0 commit comments

Comments
 (0)