Code cleanup / beta stuff

This commit is contained in:
jdl
2023-12-03 20:38:45 +01:00
parent 728b34b684
commit 9785637b3b
2 changed files with 4 additions and 10 deletions

View File

@@ -12,12 +12,6 @@ const (
pathStreamWAL = "stream-wal"
)
func (rep *Replicator) RegisterHandlers(mux *http.ServeMux, rootPath string) {
mux.HandleFunc(path.Join(rootPath, pathGetInfo), rep.handleGetInfo)
mux.HandleFunc(path.Join(rootPath, pathSendState), rep.handleSendState)
mux.HandleFunc(path.Join(rootPath, pathStreamWAL), rep.handleStreamWAL)
}
// TODO: Remove this!
func (rep *Replicator) Handle(w http.ResponseWriter, r *http.Request) {
// We'll handle two types of requests: HTTP GET requests for JSON, or