summaryrefslogtreecommitdiffhomepage
path: root/http/put.go
diff options
context:
space:
mode:
Diffstat (limited to 'http/put.go')
-rw-r--r--http/put.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/http/put.go b/http/put.go
index bc49e74..6f581bf 100644
--- a/http/put.go
+++ b/http/put.go
@@ -9,6 +9,7 @@ import (
"toast.cafe/x/brpaste/v2/storage"
)
+// Put generates a handler for the POST / and PUT /:key endpoints
func Put(store storage.CHR, put bool) handler {
return func(ctx *fasthttp.RequestCtx) {
data := ctx.FormValue("data")