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/delete", controllers.DeleteGroupHandler)
// Other functions for admin
adminOnly.POST("/unlock", controllers.Unlock)
// Safe functions for admin
adminOnly.GET("/safe/listall", controllers.GetAllSafesHandler)
adminOnly.POST("/safe/add", controllers.AddSafeHandler)
adminOnly.POST("/safe/delete", controllers.DeleteSafeHandler)
// Deprecated
//adminOnly.GET("/roles", controllers.GetRoles)
//adminOnly.POST("/role/add", controllers.AddRole)
// Other functions for admin
adminOnly.POST("/unlock", controllers.Unlock)
// Get secrets
secretRoutes := router.Group("/api/secret")