RegisterForDebug register handlers for debug port
(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper)
| 53 | |
| 54 | // RegisterForDebug register handlers for debug port |
| 55 | func (handler *SchemaHandler) RegisterForDebug(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper) { |
| 56 | router.HandleFunc("/tables", utils.ApplyHTTPWrappers(handler.ListTables, wrappers)).Methods(http.MethodGet) |
| 57 | router.HandleFunc("/tables/{table}", utils.ApplyHTTPWrappers(handler.GetTable, wrappers)).Methods(http.MethodGet) |
| 58 | } |
| 59 | |
| 60 | // ListTables swagger:route GET /schema/tables listTables |
| 61 | // List all table schemas |
no test coverage detected