ribbit/endpoints_api.go

17 lines
250 B
Go
Raw Permalink Normal View History

2018-04-26 11:53:03 +00:00
package main
import (
"fmt"
"net/http"
"github.com/gorilla/mux"
)
func handleApiCall(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "application/json")
vars := mux.Vars(req)
_ = vars
fmt.Fprint(w, req.Header)
}