diff --git a/internal/route/http.go b/internal/route/http.go index ec8daba618..474d35faca 100644 --- a/internal/route/http.go +++ b/internal/route/http.go @@ -15,7 +15,7 @@ func Http(r chi.Router) { r.Route("/api", func(r chi.Router) { r.Route("/user", func(r chi.Router) { user := service.NewUserService() - r.With(middleware.Throttle(10, time.Minute)).Post("/login", user.Login) + r.With(middleware.Throttle(5, time.Minute)).Post("/login", user.Login) r.Post("/logout", user.Logout) r.Get("/isLogin", user.IsLogin) r.With(middleware.MustLogin).Get("/info", user.Info)