feat: support account deletion

This commit is contained in:
ckt1031
2023-07-12 15:57:40 +08:00
parent 0ac0214c41
commit 7c7a45a4f5
3 changed files with 88 additions and 6 deletions

View File

@@ -37,7 +37,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)