~kota/lists

f7932a0a4cb1f5b3514babfaa21ac468ed146a5e — Dakota Walsh 11 months ago d1ed673
allow emptying a list
1 files changed, 0 insertions(+), 4 deletions(-)

M routes.go
M routes.go => routes.go +0 -4
@@ 135,10 135,6 @@ func (app *application) edit(w http.ResponseWriter, r *http.Request) {
	}

	data := r.PostForm.Get("data")
	if data == "" {
		app.clientError(w, http.StatusBadRequest)
	}

	err = app.lists.Update(name, data)
	if err != nil {
		app.serverError(w, err)