remove name print; add js to add item when there's nothing left

This commit is contained in:
Henrique Dias
2016-06-27 21:45:42 +01:00
parent a7bffd2e76
commit 2c22f06b03
2 changed files with 8 additions and 5 deletions

View File

@@ -4,7 +4,6 @@ import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"path/filepath"
@@ -19,9 +18,6 @@ func (i *Info) Update(w http.ResponseWriter, r *http.Request, c *config.Config)
var data map[string]interface{}
kind := r.Header.Get("kind")
// TODO: remove
fmt.Println(i.Name)
if kind == "" {
return http.StatusBadRequest, nil
}