Upodated end points
This commit is contained in:
@@ -138,6 +138,26 @@ class Myfit extends BaseController
|
||||
return $this->response->setJson($mCountry->getSiteCountries([]));
|
||||
}
|
||||
|
||||
public function resetpass(){
|
||||
//header("Access-Control-Allow-Origin: http://localhost:9057 ");
|
||||
header('Access-Control-Allow-Origin: * ');
|
||||
header('Access-Control-Expose-Headers: Access-Control-Allow-Origin');
|
||||
header('Access-Control-Allow-Credentials: true ');
|
||||
//header("Access-Control-Allow-Headers: Cache-Control, Pragma, Origin, Authorization, Content-Type, X-Requested-With");
|
||||
header('Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS');
|
||||
header('Content-type: application/json');
|
||||
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$raw_array = json_decode($raw_json, true);
|
||||
|
||||
$res1 = [
|
||||
'email' => $raw_array['email'],
|
||||
'status' => 1
|
||||
];
|
||||
return $this->response->setJson($res1);
|
||||
|
||||
}
|
||||
|
||||
public function faq()
|
||||
{
|
||||
//header("Access-Control-Allow-Origin: http://localhost:9057 ");
|
||||
|
||||
Reference in New Issue
Block a user