add list secret api endpoint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-05 11:31:42 +10:00
parent 70f8103901
commit b9a0c3ec0a
4 changed files with 52 additions and 10 deletions

View File

@@ -148,6 +148,7 @@ func main() {
protected := router.Group("/api/secret")
protected.Use(middlewares.JwtAuthMiddleware())
protected.POST("/retrieve", controllers.RetrieveSecret)
protected.POST("/list", controllers.ListSecrets)
protected.POST("/retrieveMultiple", controllers.RetrieveMultpleSecrets)
protected.POST("/store", controllers.StoreSecret)
protected.POST("/update", controllers.UpdateSecret)