pass a struct with the info
This commit is contained in:
12 files changed
+79
-70
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user