I want to return responses depending on the file extension of the request made to my Rest API:
1 case - No extension like /api/robots/1 I 'd like to return response with XML
2 case - /api/case/1.json I'd like to return response in JSON
The same way i would like to return response in .txt and .html
What is the way phalcon would deal with it?
Could not find such topic, please advise