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_ath)..  

I believe the change is not a invasive code, please, let me know if exists any concept distortion in my changeset.