test some reusable functions to retrieve secrets in different ways
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-04 13:26:29 +10:00
parent bf235cdebe
commit 05d7af20c1
2 changed files with 63 additions and 11 deletions

View File

@@ -152,6 +152,11 @@ func main() {
protected.POST("/store", controllers.StoreSecret)
protected.POST("/update", controllers.UpdateSecret)
// TODO - support parameters in path
// See https://gin-gonic.com/docs/examples/param-in-path/
protected.GET("/retrieve/name/:devicename", controllers.RetrieveSecretByDevicename)
protected.GET("/retrieve/category/:devicecategory", controllers.RetrieveSecretByDevicecategory)
// Initializing the server in a goroutine so that
// it won't block the graceful shutdown handling below
go func() {