mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-06 02:21:06 +08:00
chore: password can be empty when update me
This commit is contained in:
@ -22,8 +22,8 @@ func Init(r *gin.Engine) {
|
||||
auth := api.Group("", middlewares.Auth)
|
||||
|
||||
api.POST("/auth/login", handles.Login)
|
||||
auth.GET("/profile", handles.CurrentUser)
|
||||
auth.POST("/profile/update", handles.UpdateCurrent)
|
||||
auth.GET("/me", handles.CurrentUser)
|
||||
auth.POST("/me/update", handles.UpdateCurrent)
|
||||
|
||||
// no need auth
|
||||
public := api.Group("/public")
|
||||
|
Reference in New Issue
Block a user