Add a catch all to all API methods that dont exist instead of serving the index file