(td *tsweb.DebugHandler)
| 30 | } |
| 31 | |
| 32 | func (d *Debugger) RegisterHTTP(td *tsweb.DebugHandler) { |
| 33 | dh := httpDebugger{d} |
| 34 | td.Handle("bus", "Event bus", dh) |
| 35 | td.HandleSilent("bus/monitor", http.HandlerFunc(dh.serveMonitor)) |
| 36 | td.HandleSilent("bus/style.css", serveStatic("style.css")) |
| 37 | td.HandleSilent("bus/htmx.min.js", serveStatic("htmx.min.js.gz")) |
| 38 | td.HandleSilent("bus/htmx-websocket.min.js", serveStatic("htmx-websocket.min.js.gz")) |
| 39 | } |
| 40 | |
| 41 | //go:embed assets/*.html |
| 42 | var templatesSrc embed.FS |
no test coverage detected