add route
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-11 09:26:48 +11:00
parent 03cb298618
commit 06bbe010dd

View File

@@ -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")