fl4p / WP-Filebase

WP-Filebase
http://wpfilebase.com/
34 stars 35 forks source link

Separate JS code to support JSON API requests #14

Open TishoTM opened 8 years ago

fl4p commented 8 years ago

Seperating JS code is a good idea. But how does it support JSON API requests?

TishoTM commented 8 years ago

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.

fl4p commented 8 years ago

Makes sense, but there have to be changed a lot more. What is your application for this, just curious?

TishoTM commented 8 years ago

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.