Move peer http handlers from ipam to weaver

This commit is contained in:
Bryan Boreham committed 2017-04-10 14:09:06 +00:00
1 parent e2d644b86b
commit 768f89c3de
3 files changed
+22 -11

No files matched your search

+1
View File
@@ -372,6 +372,7 @@ func main() {
}
router.HandleHTTP(muxRouter)
HandleHTTP(muxRouter, version, router, allocator, defaultSubnet, ns, dnsserver)
HandleHTTPPeer(muxRouter, allocator)
muxRouter.Methods("GET").Path("/metrics").Handler(metricsHandler(router, allocator, ns, dnsserver))
http.Handle("/", common.LoggingHTTPHandler(muxRouter))
Log.Println("Listening for HTTP control messages on", httpAddr)