WP-Filebase
WP-Filebase copied to clipboard
Separate JS code to support JSON API requests
Seperating JS code is a good idea. But how does it support JSON API requests?
When JSON encoding the articles content, JS code inside the article breaks the JSON string and it becomes impossible to fetch the articles via RESTful API with JSON responses.
Makes sense, but there have to be changed a lot more. What is your application for this, just curious?
I am mostly using the file browser view inside the articles. There might be other places in the codebase that need revision, but have not looked at those. My particular use case is mobile app fetching the WP articles via api with JSON responses.