start work on adding secrets

This commit is contained in:
2023-03-31 16:59:38 +11:00
parent 8135c49e7f
commit 7184eba5f3
6 changed files with 75 additions and 23 deletions

View File

@@ -47,7 +47,7 @@ func main() {
protected := router.Group("/api/secret")
protected.Use(middlewares.JwtAuthMiddleware())
protected.GET("/retrieve", controllers.Retrieve)
protected.POST("/store", controllers.Store)
protected.POST("/store", controllers.StoreSecret)
// Initializing the server in a goroutine so that
// it won't block the graceful shutdown handling below