File tree Expand file tree Collapse file tree
cla-backend-legacy/internal/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import (
1515func 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
You can’t perform that action at this time.
0 commit comments