A simple router for public apis

Added a router to translate resource calls to class method calls