Update the `/add_entity` endpoint to redirect to different endpoints based on the type of entity being added.
Update the
/add_entityendpoint to redirect to different endpoints based on the type of entity being added.