user delete
This commit is contained in:
parent
ade75df6b3
commit
89d6d8df5e
@ -10,6 +10,7 @@ type UserHandler interface {
|
||||
ListUsers(c *gin.Context)
|
||||
CreateUser(c *gin.Context)
|
||||
UpdateUser(c *gin.Context)
|
||||
DeleteUser(c *gin.Context)
|
||||
GetProfile(c *gin.Context)
|
||||
GetUserProfile(c *gin.Context)
|
||||
UpdateProfile(c *gin.Context)
|
||||
|
||||
@ -95,6 +95,7 @@ func (r *Router) addAppRoutes(rg *gin.Engine) {
|
||||
users.POST("", r.userHandler.CreateUser)
|
||||
users.GET("", r.userHandler.ListUsers)
|
||||
users.PUT("/:id", r.userHandler.UpdateUser)
|
||||
users.DELETE("/:id", r.userHandler.DeleteUser)
|
||||
users.GET("/profile", r.userHandler.GetProfile)
|
||||
users.GET("/:id/profile", r.userHandler.GetUserProfile)
|
||||
users.PUT("/profile", r.userHandler.UpdateProfile)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user