Explorar o código

fix: no need to check turnstile when process deletion

JustSong %!s(int64=2) %!d(string=hai) anos
pai
achega
463b0b3c51
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      router/api-router.go

+ 1 - 1
router/api-router.go

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