Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
20 lines
422 B
Go
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)
|
|
}
|
|
}
|