add delete user endpoint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-03 15:05:07 +11:00
parent f6602f2823
commit e7b2c86ba7
4 changed files with 80 additions and 4 deletions

View File

@@ -250,6 +250,7 @@ func main() {
adminOnly.POST("/register", controllers.Register)
adminOnly.GET("/roles", controllers.GetRoles)
adminOnly.GET("/users", controllers.GetUsers)
adminOnly.GET("/user/delete", controllers.DeleteUser)
// Get secrets
protected := router.Group("/api/secret")