implamented Aroll cuter
This commit is contained in:
@@ -2,6 +2,7 @@ package handlers
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"log"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
|
||||
@@ -42,5 +43,7 @@ func UploadHandler(st *store.Store) http.HandlerFunc {
|
||||
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
json.NewEncoder(w).Encode(map[string]string{"filename": key})
|
||||
|
||||
log.Println("Upload handler works")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user