feat: add folderId, custom fields, PUT/DELETE secret, GET /folders
This commit is contained in:
1 parent
0ede8f145d
commit
30ae00d5f4
4 files changed
+426
-1
No files matched your search
+4
-1
@@ -95,7 +95,7 @@ func main() {
|
||||
|
||||
app.Use(cors.New(cors.Config{
|
||||
AllowOrigins: cfg.CORSAllowedOrigins,
|
||||
AllowMethods: "GET,POST",
|
||||
AllowMethods: "GET,POST,PUT,DELETE",
|
||||
AllowHeaders: "Authorization,Content-Type",
|
||||
AllowCredentials: false,
|
||||
}))
|
||||
@@ -123,6 +123,9 @@ func main() {
|
||||
|
||||
api.Get("/secret/:name", h.GetSecret)
|
||||
api.Post("/secret", h.CreateSecret)
|
||||
api.Put("/secret/:name", h.UpdateSecret)
|
||||
api.Delete("/secret/:name", h.DeleteSecret)
|
||||
api.Get("/folders", h.ListFolders)
|
||||
api.Post("/refresh", h.RefreshCache)
|
||||
|
||||
// Graceful shutdown.
|
||||
|
||||
Reference in new issue
Block a user