Register registers http handlers.
(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper)
| 39 | |
| 40 | // Register registers http handlers. |
| 41 | func (handler *DataHandler) Register(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper) { |
| 42 | router.HandleFunc("/{table}/{shard}", utils.ApplyHTTPWrappers(handler.PostData, wrappers)).Methods(http.MethodPost) |
| 43 | } |
| 44 | |
| 45 | // PostData swagger:route POST /data/{table}/{shard} postData |
| 46 | // Post new data batch to a existing table shard |
no test coverage detected