pass a struct with the info

This commit is contained in:
Henrique Dias committed 2017-06-27 09:57:11 +01:00
1 parent 3b3643be05
commit 1d26b8e95e
12 files changed
+79 -70

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ import (
)
// put is used to update a file that was edited
func put(w http.ResponseWriter, r *http.Request, c *FileManager, u *User) (err error) {
func put(ctx *requestContext, w http.ResponseWriter, r *http.Request) (err error) {
var (
data = map[string]interface{}{}
file []byte