mk0y / wp-on-routes

WordPress on Routes is a plugin for WordPress, inspired mainly by Ruby micro-frameworks. It adds ability to add custom routes to your WordPress instance. Useful for form submissions, API-like features, etc.
13 stars 1 forks source link

Missing "Way" class? #4

Open chrisvanpatten opened 9 years ago

chrisvanpatten commented 9 years ago

I'm trying to use the 'include_template' feature, and I'm getting this error:

Fatal error: Class 'WoR\Way' not found in /path/to/wp-content/plugins/wp-on-routes/lib/template.php on line 68

I can't find any reference to a "Way" class in the code. Is it missing from the repo?

chrisvanpatten commented 9 years ago

(BTW thanks for a great, simple routing plugin!)

mk0y commented 9 years ago

Hi, sorry for that, should be fixed now. I renamed this class to Jsonapi, idea is to have API for json responses but never could find some time.. atm you can call /posts.json which is predefined and get all posts in JSON format.

Thanks! :)