remove name print; add js to add item when there's nothing left
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user