mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 07:43:41 +08:00 
			
		
		
		
	fix: no need to check turnstile when process deletion
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user