Updated endpoints to work in deployment