Update custom_routes.md

changed the php implementation a bit.