test some reusable functions to retrieve secrets in different ways
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
5
main.go
5
main.go
@@ -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() {
|
||||
|
Reference in New Issue
Block a user