redirect some (not all) API calls from PHP to Flask