add update endpoint

This commit is contained in:
2023-04-03 09:17:42 +10:00
parent 748f4251e1
commit 931d345ec4
5 changed files with 98 additions and 6 deletions

View File

@@ -120,6 +120,7 @@ func main() {
protected.GET("/retrieve", controllers.RetrieveSecret)
protected.GET("/retrieveMultiple", controllers.RetrieveMultpleSecrets)
protected.POST("/store", controllers.StoreSecret)
protected.POST("/update", controllers.UpdateSecret)
// Initializing the server in a goroutine so that
// it won't block the graceful shutdown handling below