You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
369B

  1. package main
  2. import (
  3. "fmt"
  4. "net/http"
  5. "net/http/httputil"
  6. )
  7. const apiV1Prefix = "/api/v1/"
  8. //apiV1Main version 1 main entry for all wechat callbacks
  9. //
  10. func apiV1Main(w http.ResponseWriter, r *http.Request) {
  11. logRequestDebug(httputil.DumpRequest(r, true))
  12. path := r.URL.Path[len(apiV1Prefix):]
  13. fmt.Fprintf(w, "Protocol = %s, path= %s \n", r.Method, path)
  14. }