rewrite endpoint registry logic so we don't need to attach `ToHandlerFunc())` to every route also so that we don't need to repeat the path & route in the handlerFunc