Add resources api (#9)

* feat: add resource api

* update delete model return variables
This commit is contained in:
STEVEN
2021-12-14 20:08:12 +08:00
committed by GitHub
parent 6589671da8
commit aa40793a68
11 changed files with 318 additions and 34 deletions

View File

@ -86,7 +86,7 @@ func handleDeleteQuery(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
queryId := vars["id"]
_, err := store.DeleteQuery(queryId)
err := store.DeleteQuery(queryId)
if err != nil {
e.ErrorHandler(w, "DATABASE_ERROR", err.Error())