mirror of
https://github.com/pushbits/server.git
synced 2025-06-05 04:02:50 +02:00
Implement retrieving of user data
This commit is contained in:
parent
a3de04b2a5
commit
e4e87f2710
7 changed files with 101 additions and 73 deletions
|
@ -48,6 +48,9 @@ func Create(debug bool, cm *credentials.Manager, db *database.Database, dp *disp
|
|||
userGroup.Use(auth.RequireAdmin())
|
||||
{
|
||||
userGroup.POST("", userHandler.CreateUser)
|
||||
userGroup.GET("", userHandler.GetUsers)
|
||||
|
||||
userGroup.GET("/:id", api.RequireIDInURI(), userHandler.GetUser)
|
||||
userGroup.DELETE("/:id", api.RequireIDInURI(), userHandler.DeleteUser)
|
||||
userGroup.PUT("/:id", api.RequireIDInURI(), userHandler.UpdateUser)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue