feat: add POST /secret to write Login and SecureNote ciphers
This commit is contained in:
1 parent
0ad0415dba
commit
8801217dd1
5 files changed
+276
-14
No files matched your search
@@ -122,6 +122,7 @@ func main() {
|
||||
api.Use(auth.Middleware(auth.NewStore(cfg.APIKeys)))
|
||||
|
||||
api.Get("/secret/:name", h.GetSecret)
|
||||
api.Post("/secret", h.CreateSecret)
|
||||
api.Post("/refresh", h.RefreshCache)
|
||||
|
||||
// Graceful shutdown.
|
||||
|
||||
Reference in new issue
Block a user