This commit is contained in:
2023-04-01 16:16:07 +11:00
parent 7184eba5f3
commit b19aeeb30d
5 changed files with 46 additions and 352 deletions

View File

@@ -46,7 +46,7 @@ func main() {
// Get secrets
protected := router.Group("/api/secret")
protected.Use(middlewares.JwtAuthMiddleware())
protected.GET("/retrieve", controllers.Retrieve)
protected.GET("/retrieve", controllers.RetrieveSecret)
protected.POST("/store", controllers.StoreSecret)
// Initializing the server in a goroutine so that