Recommended way to expose some page data via JSON API

Hey Pradhyumn

Maybe one of the security eel helpers could be a solution.

https://neos.readthedocs.io/en/stable/References/EelHelpersReference.html#security

Untested, but i would place one or more of them in the condition for the isJson case in the Mh:RootCase prototype from @Marc
And then i would return 404 or whatever instead of the isHtml case. :slight_smile:

Checkout the Policy framework of Flow
https://flowframework.readthedocs.io/en/stable/TheDefinitiveGuide/PartIII/Security.html

And in the future, please start a new thread, instead of waking old threads alive :zombie: :stuck_out_tongue: