I am using Slim to power an API for a simple online CMS. I need the ability to have a REST API (easy) as well as be able to access data directly from PHP on the website. I am not using Slim to generate any sort of views. Its only there to manage the data inside the CMS.
If I give all of my routes names, will I be able to access my CMS data via named routes?
I would expect that to return JSON data.
It would be great if this is possible. This way I could spend my time individual controllers for API inside of duplicating them (one for REST API and another for local PHP includes)