add a simple method get post by type and postname (no require authentica...

I have a java app running on tomcat that consumes the posts by WP-API and i would like to access posts by <b>Type and Postname/Path</b>.  However, if i understand the plugin just permits authenticated users by using filter params like a wp-query. Really is dangerous to leave this feature opened. So i created the route for posts/<type>/<postname> and the method to retrieve the post using wordpress native function (get_page_by_path)..  

I believe the change is not a invasive code, please, let me know if exists any concept distortion in my changeset.

Note:

In my case i have some codes in JSPs like..  for example: c:import url="wordpress/post/44888"
And in the case of a wodpress user recreate the post it would break my integration