Helper struct for registering handlers that are called by the Iroh
Endpoint. GET handlers and POST handlers are registered separately, since
they contain different function signatures. If a route is authenticated, it
is also stored in authenticated_routes which is checked when the specific
handler is called.
Checks if the requested route is authenticated and will reject the request
if the authentication is incorrect. Then it will lookup the specific handler
in Handlers, execute it, and return the function’s JSON along with an HTTP
status code.