移除 tmp

This commit is contained in:
2024-10-26 04:23:02 +08:00
parent d3e3a0d79b
commit 61c2840612
3 changed files with 1 additions and 41 deletions

View File

@@ -237,20 +237,6 @@ func main() {
Pretty: false,
})))
//http.HandleFunc("/api", func(w http.ResponseWriter, r *http.Request) {
// defer LogComponent(time.Now().UnixNano(), r) // 最后打印日志
// query := r.URL.Query().Get("query")
// params := graphql.Params{Schema: schema, RequestString: query}
// result := graphql.Do(params)
// if len(result.Errors) > 0 {
// fmt.Printf("failed to execute graphql operation, errors: %+v", result.Errors)
// http.Error(w, result.Errors[0].Error(), 500)
// return
// }
// rJSON, _ := json.MarshalIndent(result.Data, "", " ")
// w.Write(rJSON)
//})
http.HandleFunc("/favicon.ico", func(w http.ResponseWriter, r *http.Request) {
defer LogComponent(time.Now().UnixNano(), r) // 最后打印日志
http.Error(w, "Not Found", http.StatusNotFound)