making healthCheck a middleware so we dont go through a https redir