NewHandler initializes the request handler with a driver implementation.
(driver Driver)
| 122 | |
| 123 | // NewHandler initializes the request handler with a driver implementation. |
| 124 | func NewHandler(driver Driver) *Handler { |
| 125 | h := &Handler{driver, sdk.NewHandler(manifest)} |
| 126 | h.initMux() |
| 127 | return h |
| 128 | } |
| 129 | |
| 130 | func (h *Handler) initMux() { |
| 131 | h.HandleFunc(createPath, func(w http.ResponseWriter, r *http.Request) { |
searching dependent graphs…