feat: add folderId, custom fields, PUT/DELETE secret, GET /folders
CI / test (push) Has been cancelled
CI / docker (push) Has been cancelled

This commit is contained in:
hermes committed 2026-08-03 22:31:35 +02:00
1 parent 0ede8f145d
commit 30ae00d5f4
4 files changed
+426 -1

No files matched your search

+4 -1
View File
@@ -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.