mirror of
https://github.com/pushbits/server.git
synced 2025-06-01 02:01:59 +02:00
Partially implement updates of models
This commit is contained in:
parent
6a77df8373
commit
d621333b6e
9 changed files with 158 additions and 19 deletions
|
@ -35,6 +35,7 @@ func Create(debug bool, db *database.Database, dp *dispatcher.Dispatcher) *gin.E
|
|||
{
|
||||
applicationGroup.POST("", applicationHandler.CreateApplication)
|
||||
applicationGroup.DELETE("/:id", applicationHandler.DeleteApplication)
|
||||
applicationGroup.PUT("/:id", applicationHandler.UpdateApplication)
|
||||
}
|
||||
|
||||
r.POST("/message", auth.RequireApplicationToken(), notificationHandler.CreateNotification)
|
||||
|
@ -44,6 +45,7 @@ func Create(debug bool, db *database.Database, dp *dispatcher.Dispatcher) *gin.E
|
|||
{
|
||||
userGroup.POST("", userHandler.CreateUser)
|
||||
userGroup.DELETE("/:id", userHandler.DeleteUser)
|
||||
userGroup.PUT("/:id", userHandler.UpdateUser)
|
||||
}
|
||||
|
||||
return r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue