Set api.app to the HTTP object