Files
web_hgdjb_server/app/router/auth.go
T
2026-11-07 10:47:32 +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)
}
}