Create controller.php

Acts like a Router for All request to the API