fix request type for secret list
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:
4
main.go
4
main.go
@@ -148,12 +148,12 @@ func main() {
|
||||
protected := router.Group("/api/secret")
|
||||
protected.Use(middlewares.JwtAuthMiddleware())
|
||||
protected.POST("/retrieve", controllers.RetrieveSecret)
|
||||
protected.POST("/list", controllers.ListSecrets)
|
||||
protected.GET("/list", controllers.ListSecrets)
|
||||
protected.POST("/retrieveMultiple", controllers.RetrieveMultpleSecrets)
|
||||
protected.POST("/store", controllers.StoreSecret)
|
||||
protected.POST("/update", controllers.UpdateSecret)
|
||||
|
||||
// TODO - support parameters in path
|
||||
// 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)
|
||||
|
Reference in New Issue
Block a user