Unable to train rasa through endpoint

So I have pulled the latest image from the docker and running it locally exposing it’s port with a docker-compose file of my own.

When I hit the train URL i.e,


I get a 404 Not found reponse…

But when i run the rasa server through terminal… using the following cmd

rasa run -m models --enable-api --cors “*” --debug

and hit the train api, The training sequence is established, Does any one know why?