Server code for Canvas Mobile App