api UPDATE
This commit is contained in:
@@ -24,6 +24,9 @@ $RECYCLE.BIN/
|
|||||||
*.msm
|
*.msm
|
||||||
*.msp
|
*.msp
|
||||||
|
|
||||||
|
BACKUP
|
||||||
|
BACKUP/*
|
||||||
|
BAKUP/*
|
||||||
# Windows shortcuts
|
# Windows shortcuts
|
||||||
*.lnk
|
*.lnk
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,10 @@ $routes->get('/en/desktop/api/v2/myfit/faq', 'Myfit::faq');
|
|||||||
$routes->post('/en/desktop/api/v2/myfit/contact', 'Myfit::contact');
|
$routes->post('/en/desktop/api/v2/myfit/contact', 'Myfit::contact');
|
||||||
$routes->get('/en/desktop/api/v2/myfit/pricing', 'Myfit::pricing');
|
$routes->get('/en/desktop/api/v2/myfit/pricing', 'Myfit::pricing');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//reset pass & login
|
//reset pass & login
|
||||||
$routes->post('/en/desktop/api/v2/myfituser/resetpass', 'Myfitauth::users');
|
$routes->post('/en/desktop/api/v2/myfituser/resetpass', 'Myfitauth::users');
|
||||||
//MYFIT DESKTOP USERS
|
//MYFIT DESKTOP USERS
|
||||||
@@ -58,8 +62,10 @@ $routes->post('/en/desktop/api/v2/myfituser/account', 'Myfitauth::users');
|
|||||||
|
|
||||||
$routes->get('/en/desktop/api/v2/myfituser/profile', 'Myfituser::users');
|
$routes->get('/en/desktop/api/v2/myfituser/profile', 'Myfituser::users');
|
||||||
$routes->get('/en/desktop/api/v2/myfituser/myfeed', 'Myfituser::users');
|
$routes->get('/en/desktop/api/v2/myfituser/myfeed', 'Myfituser::users');
|
||||||
$routes->get('/en/desktop/api/v2/myfituser/tracking', 'Myfituser::users');
|
|
||||||
|
|
||||||
|
//Tracking
|
||||||
|
$routes->get('/en/desktop/api/v2/myfituser/tracking', 'Myfituser::users');
|
||||||
|
$routes->get('/en/desktop/api/v2/myfituser/trackcategory', 'Myfituser::users');
|
||||||
|
|
||||||
// REMINDERS -------------------------------------------------------------
|
// REMINDERS -------------------------------------------------------------
|
||||||
$routes->get('/en/desktop/api/v2/myfituser/reminders?(:any)', 'Myfituser::users/$1');
|
$routes->get('/en/desktop/api/v2/myfituser/reminders?(:any)', 'Myfituser::users/$1');
|
||||||
@@ -73,7 +79,7 @@ $routes->get('/en/desktop/api/v2/myfituser/loginhx', 'Myfituser::users');
|
|||||||
$routes->get('/en/desktop/api/v2/myfituser/stats', 'Myfituser::users');
|
$routes->get('/en/desktop/api/v2/myfituser/stats', 'Myfituser::users');
|
||||||
$routes->get('/en/desktop/api/v2/myfituser/resources', 'Myfituser::users');
|
$routes->get('/en/desktop/api/v2/myfituser/resources', 'Myfituser::users');
|
||||||
|
|
||||||
$routes->get('/en/desktop/api/v2/myfituser/trackcategory', 'Myfituser::users');
|
|
||||||
|
|
||||||
//MYFIT DESKTOP USERS
|
//MYFIT DESKTOP USERS
|
||||||
$routes->post('/en/mobile/api/v2/myfituser/login', 'Myfituser::users');
|
$routes->post('/en/mobile/api/v2/myfituser/login', 'Myfituser::users');
|
||||||
|
|||||||
@@ -57,7 +57,8 @@ class Myfituser extends BaseController
|
|||||||
'remcategory' => ['GET'],
|
'remcategory' => ['GET'],
|
||||||
'remmode' => ['GET'],
|
'remmode' => ['GET'],
|
||||||
'resources' => ['GET'],
|
'resources' => ['GET'],
|
||||||
'trackcategory' => ['GET']
|
'trackcategory' => ['GET'],
|
||||||
|
'resetpass' => ['POST'],
|
||||||
];
|
];
|
||||||
|
|
||||||
$res1 = [];
|
$res1 = [];
|
||||||
@@ -115,6 +116,9 @@ class Myfituser extends BaseController
|
|||||||
case 'calendar':
|
case 'calendar':
|
||||||
$res1 = $this->dummyData($raw_array);
|
$res1 = $this->dummyData($raw_array);
|
||||||
break;
|
break;
|
||||||
|
case 'resetpass': // reset password after login steps
|
||||||
|
$res1 = $this->dummyData($raw_array);
|
||||||
|
break;
|
||||||
case 'profile':
|
case 'profile':
|
||||||
$res1 = $this->dummyData($raw_array);
|
$res1 = $this->dummyData($raw_array);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -18,12 +18,16 @@ class myfitHx extends Model
|
|||||||
{
|
{
|
||||||
// $in['member_id'] = 16;
|
// $in['member_id'] = 16;
|
||||||
$member_id =
|
$member_id =
|
||||||
( isset($in['member_id']) && $in['member_id'] > 0 && is_int($in['member_id']) )
|
isset($in['member_id']) &&
|
||||||
|
$in['member_id'] > 0 &&
|
||||||
|
is_int($in['member_id'])
|
||||||
? $in['member_id']
|
? $in['member_id']
|
||||||
: 0;
|
: 0;
|
||||||
|
// $member_id = 13;
|
||||||
$sqlQ =
|
$sqlQ =
|
||||||
'SELECT * FROM members_login_hx WHERE member_id=' .
|
'SELECT * FROM members_login_hx WHERE member_id=' .
|
||||||
$member_id;
|
$member_id .
|
||||||
|
' ORDER BY id DESC LIMIT 15';
|
||||||
$query = $this->db->query($sqlQ);
|
$query = $this->db->query($sqlQ);
|
||||||
$data['loginhx_data'] = $query->getResultArray();
|
$data['loginhx_data'] = $query->getResultArray();
|
||||||
return $inx = [
|
return $inx = [
|
||||||
|
|||||||
@@ -17,14 +17,16 @@ class myfitResources extends Model
|
|||||||
$ar = [
|
$ar = [
|
||||||
'id' => $i,
|
'id' => $i,
|
||||||
'description' => "This is the $i Desc $i",
|
'description' => "This is the $i Desc $i",
|
||||||
'img1' => 'https://blog.mermsemr.com/wp-content/uploads/2021/01/COVID-19-vaccine_002.jpg',
|
'img1' =>
|
||||||
|
'https://blog.mermsemr.com/wp-content/uploads/2021/01/COVID-19-vaccine_002.jpg',
|
||||||
];
|
];
|
||||||
|
|
||||||
$dm[] = $ar;
|
$dm[] = $ar;
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'resources' => $dm,
|
'category' => ['Blogs', 'Exercises', 'Videos'],
|
||||||
|
'resources' => ['blog'=>$dm],
|
||||||
'raw_data' => $in,
|
'raw_data' => $in,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use CodeIgniter\Model;
|
||||||
|
|
||||||
|
class myfitUserProfile extends Model
|
||||||
|
{
|
||||||
|
protected $db;
|
||||||
|
public $con_name = 'mermsemr';
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
parent::__construct();
|
||||||
|
$this->db = \Config\Database::connect($this->con_name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function accountResetPassword($in)
|
||||||
|
{
|
||||||
|
return ['msg' => 'Profile Information'];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getProfileInfo($in)
|
||||||
|
{
|
||||||
|
return ['msg' => 'Profile Information'];
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user