Skip to content

Commit

Permalink
handled some git conflict things
Browse files Browse the repository at this point in the history
  • Loading branch information
ALCooper12 committed Mar 4, 2025
1 parent 8dd4edd commit f1b6301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/api/src/api/registration/v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ func registerV2Auth(resources v2.Resources, routerInst *router.Router, permissio
managementResource = authapi.NewManagementResource(resources.Config, resources.DB, resources.Authorizer, resources.Authenticator)
)

routerInst.POST("/api/v2/login", loginResource.Login).Use(middleware.DefaultRateLimitMiddleware(), middleware.LoginTimer())

router.With(func() mux.MiddlewareFunc {
rate := limiter.Rate{
Period: 1 * time.Second,
Expand All @@ -56,7 +54,9 @@ func registerV2Auth(resources v2.Resources, routerInst *router.Router, permissio
return middleware.RateLimitMiddleware(resources.Config, instance)
},
// Login resource
routerInst.POST("/api/v2/login", loginResource.Login),
routerInst.POST("/api/v2/login", func(response http.ResponseWriter, request *http.Request) {
middleware.LoginTimer()(http.HandlerFunc(loginResource.Login)).ServeHTTP(response, request)
}),
)

router.With(func() mux.MiddlewareFunc {
Expand Down

0 comments on commit f1b6301

Please sign in to comment.