移除 tmp
This commit is contained in:
14
bin/main.go
14
bin/main.go
@@ -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)
|
||||
|
Reference in New Issue
Block a user