- Backend End Point Host -> application/helper-->host
- Post Request -> sendCurl(host()."/end_point_param",$data=null,$method="post",$header=$headers);
- Get Request -> sendCurl(host()."/end_point_param",$data=null,$method="get",$header=$headers);
- Base Url -> application/config/config.php
- Run php -S your_base_url
- Folder assets in root folder
$headers = array(); $headers[] = "Accept: application/json"; $headers[] = "Authorization: Bearer ".$token;