Recommended way to expose some page data via JSON API

Hey Pradhyumn

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

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

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