feat: check-in feature integrates Turnstile security check

This commit is contained in:
Seefs
2026-01-03 11:08:26 +08:00
parent 43c671b8b3
commit c33ac97c71
4 changed files with 70 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ func SetApiRouter(router *gin.Engine) {
// Check-in routes
selfRoute.GET("/checkin", controller.GetCheckinStatus)
selfRoute.POST("/checkin", controller.DoCheckin)
selfRoute.POST("/checkin", middleware.TurnstileCheck(), controller.DoCheckin)
}
adminRoute := userRoute.Group("/")