This commit is contained in:
9
main.go
9
main.go
@@ -257,14 +257,13 @@ func main() {
|
|||||||
//adminOnly.POST("/group/update", controllers.UpdateGroup)
|
//adminOnly.POST("/group/update", controllers.UpdateGroup)
|
||||||
adminOnly.POST("/group/delete", controllers.DeleteGroupHandler)
|
adminOnly.POST("/group/delete", controllers.DeleteGroupHandler)
|
||||||
|
|
||||||
// Other functions for admin
|
// Safe functions for admin
|
||||||
adminOnly.POST("/unlock", controllers.Unlock)
|
|
||||||
adminOnly.GET("/safe/listall", controllers.GetAllSafesHandler)
|
adminOnly.GET("/safe/listall", controllers.GetAllSafesHandler)
|
||||||
adminOnly.POST("/safe/add", controllers.AddSafeHandler)
|
adminOnly.POST("/safe/add", controllers.AddSafeHandler)
|
||||||
|
adminOnly.POST("/safe/delete", controllers.DeleteSafeHandler)
|
||||||
|
|
||||||
// Deprecated
|
// Other functions for admin
|
||||||
//adminOnly.GET("/roles", controllers.GetRoles)
|
adminOnly.POST("/unlock", controllers.Unlock)
|
||||||
//adminOnly.POST("/role/add", controllers.AddRole)
|
|
||||||
|
|
||||||
// Get secrets
|
// Get secrets
|
||||||
secretRoutes := router.Group("/api/secret")
|
secretRoutes := router.Group("/api/secret")
|
||||||
|
Reference in New Issue
Block a user