Skip to content

Commit 0fa8892

Browse files
committed
chore: cleanup
1 parent 7e3476e commit 0fa8892

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend-go/routes/routes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func Setup(app *fiber.App, db *gorm.DB, workerManager *workers.WorkerManager, fa
2424
api.Get("/tags/statistics", tagHandler.GetTagStatistics)
2525
api.Get("/tags/related", tagHandler.GetRelatedTags)
2626
api.Use("/tags/request", limiter.New(limiter.Config{
27-
Max: 5,
27+
Max: 2,
2828
Expiration: 1 * time.Minute,
2929
KeyGenerator: func(c *fiber.Ctx) string {
3030
return c.Get("X-Forwarded-For")
@@ -36,7 +36,7 @@ func Setup(app *fiber.App, db *gorm.DB, workerManager *workers.WorkerManager, fa
3636
api.Get("/creators", creatorHandler.GetCreators)
3737
api.Get("/creators/statistics", creatorHandler.GetCreatorStatistics)
3838
api.Use("/creators/request", limiter.New(limiter.Config{
39-
Max: 5,
39+
Max: 2,
4040
Expiration: 1 * time.Minute,
4141
KeyGenerator: func(c *fiber.Ctx) string {
4242
return c.Get("X-Forwarded-For")

0 commit comments

Comments
 (0)