Open ramarahmanda opened 2 years ago
Exposing mux router so that wen can extend middleware in server
middleware := func(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { log.Println("middleware", r.URL) h.ServeHTTP(w, r) }) } r := bookstore.Initialize(NewService()) r.Use(middleware)
Description
Exposing mux router so that wen can extend middleware in server
Sample usage