Updated the ApiDispatcher for better routing of the PUT/DELETE/GET/POST methods