Skip to content

Let Primary and Secondary construct http.ServeMux

Niels Möller requested to merge refactor-http-endpoints into main

Deletes the fields {Primary,Secondary}.{Public,Internal}HTTPMux, and deletes the methods returning handler lists. Replaced with methods to create and return a http.ServeMux to handle the node's endpoints. Main functions just attach these muxes to the servers they create.

Also adds the prometheus /metrics to the internal mux, since that seems to be the intention. It was previously dangling.

Edited by Niels Möller

Merge request reports

Loading