Fixed api

API now works, you can send requests and it will successfully send
response