mirror of
https://github.com/pushbits/server.git
synced 2025-06-01 02:01:59 +02:00
Implement deletion of users
This commit is contained in:
parent
18d11677ac
commit
f6ca287d0b
10 changed files with 112 additions and 35 deletions
|
@ -20,7 +20,7 @@ func Create(db *database.Database, dp *dispatcher.Dispatcher) *gin.Engine {
|
|||
|
||||
applicationHandler := api.ApplicationHandler{DB: db, Dispatcher: dp}
|
||||
notificationHandler := api.NotificationHandler{DB: db, Dispatcher: dp}
|
||||
userHandler := api.UserHandler{DB: db}
|
||||
userHandler := api.UserHandler{DB: db, Dispatcher: dp}
|
||||
|
||||
r := gin.Default()
|
||||
r.Use(location.Default())
|
||||
|
@ -38,7 +38,7 @@ func Create(db *database.Database, dp *dispatcher.Dispatcher) *gin.Engine {
|
|||
userGroup.Use(auth.RequireAdmin())
|
||||
{
|
||||
userGroup.POST("", userHandler.CreateUser)
|
||||
//userGroup.DELETE("/:id", userHandler.DeleteUser)
|
||||
userGroup.DELETE("/:id", userHandler.DeleteUser)
|
||||
}
|
||||
|
||||
return r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue