- 删除注册、登录、找回密码、游客登录接口及密码、token 相关代码 - 鉴权中间件不再校验 token,按 X-User-Agent 中的 devID 识别用户,首次访问自动创建,Redis 缓存 10 分钟 - 渠道码改从请求头 channel 读取;修改资料不再支持改密码 - 同步更新 swagger 文档 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
16 lines
247 B
Go
16 lines
247 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.GET("/getInfo", authapi.GetInfo)
|
|
auth.POST("/profile", authapi.UpdateProfile)
|
|
}
|
|
}
|