Updated code tpl to point to /data instead of /api