in the past I have used Kirby very much as a pure API. This means that there were no normal PHP pages. Just a function that JSON publishes. But because I didn’t like the .json in the URL, I didn’t use this function either. That means a home.php just delivered json.
Now I ported to version3, added by reinstalling everything. And my old approach doesn’t really work anymore.
I always get an answer with the type document. Setting the headers doesn’t help either.