dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 24cdce06d84d20a250d6313b0f0d04384ab76625
parent e0f1151b2ee024f7b9b14365b0ef9d81c3030313
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 27 Dec 2023 11:25:54 -0500

rate limit

Diffstat:
Mpkg/web/web.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/web.go b/pkg/web/web.go @@ -100,7 +100,7 @@ func getMainServer(db *database.DkfDB, i18nBundle *i18n.Bundle, renderer *tmp.Te authGroup.GET("/poker", handlers.PokerHomeHandler) authGroup.POST("/poker", handlers.PokerHomeHandler, middlewares.AuthRateLimitMiddleware(time.Second, 1)) authGroup.GET("/poker/rake-back", handlers.PokerRakeBackHandler) - authGroup.POST("/poker/rake-back", handlers.PokerRakeBackHandler) + authGroup.POST("/poker/rake-back", handlers.PokerRakeBackHandler, middlewares.AuthRateLimitMiddleware(time.Second, 1)) authGroup.GET("/poker/:roomID", handlers.PokerTableHandler) authGroup.GET("/poker/:roomID/stream", handlers.PokerStreamHandler) authGroup.GET("/poker/:roomID/logs", handlers.PokerLogsHandler)