Files
web_hgtv_server/app/router/auth.go
T
rootandClaude Opus 5.5 7974a42301 Initial commit
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 11:07:42 +08:00

20 lines
422 B
Go

package router
import (
"videoweb/app/api/authapi"
"github.com/gin-gonic/gin"
)
func authRouter(r *gin.Engine) {
auth := r.Group("/api/app/auth")
{
auth.POST("/guest", authapi.GuestLogin)
auth.POST("/register", authapi.Register)
auth.POST("/login", authapi.Login)
auth.GET("/getInfo", authapi.GetInfo)
auth.POST("/profile", authapi.UpdateProfile)
auth.POST("/resetPassword", authapi.ResetPassword)
}
}