try changing the require for endpoint