api change user password
This commit is contained in:
@@ -15,6 +15,7 @@ type UserHandler interface {
|
||||
GetUserProfile(c *gin.Context)
|
||||
UpdateProfile(c *gin.Context)
|
||||
ChangePassword(c *gin.Context)
|
||||
ChangeUserPassword(c *gin.Context)
|
||||
ListTitles(c *gin.Context)
|
||||
GetActiveUsersForMention(c *gin.Context)
|
||||
}
|
||||
|
||||
@@ -103,6 +103,7 @@ func (r *Router) addAppRoutes(rg *gin.Engine) {
|
||||
users.GET("/:id/profile", r.userHandler.GetUserProfile)
|
||||
users.PUT("/profile", r.userHandler.UpdateProfile)
|
||||
users.PUT("/:id/password", r.userHandler.ChangePassword)
|
||||
users.PUT("/:id/user-password", r.userHandler.ChangeUserPassword)
|
||||
users.GET("/titles", r.userHandler.ListTitles)
|
||||
users.GET("/mention", r.userHandler.GetActiveUsersForMention)
|
||||
users.POST("/profile/avatar", r.fileHandler.UploadProfileAvatar)
|
||||
|
||||
Reference in New Issue
Block a user