refactor(account): remove unused structs and logout by token

This commit is contained in:
Leon
2025-12-09 15:58:07 +08:00
parent f122a6170d
commit 4bedf58a03
2 changed files with 8 additions and 26 deletions

View File

@@ -28,7 +28,7 @@ func SetRouter(db *gorm.DB) *gin.Engine {
protectedAccountGroup.Use(middleware.JWTAuth(accountRepository))
{
protectedAccountGroup.POST("/logout", accountHandler.Logout)
protectedAccountGroup.POST("/rename", accountHandler.RenameByID)
protectedAccountGroup.POST("/rename", accountHandler.Rename)
}
// video
videoRepository := video.NewVideoRepository(db)