feat: add turnstile in account deletion

This commit is contained in:
ckt1031
2023-08-08 23:14:48 +08:00
parent be6a17d4f9
commit 43496ecda7
2 changed files with 16 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ func SetApiRouter(router *gin.Engine) {
{
selfRoute.GET("/self", controller.GetSelf)
selfRoute.PUT("/self", controller.UpdateSelf)
selfRoute.DELETE("/self", controller.DeleteSelf)
selfRoute.DELETE("/self", middleware.TurnstileCheck(), controller.DeleteSelf)
selfRoute.GET("/token", controller.GenerateAccessToken)
selfRoute.GET("/aff", controller.GetAffCode)
selfRoute.POST("/topup", controller.TopUp)