api UPDATE
This commit is contained in:
@@ -24,6 +24,9 @@ $RECYCLE.BIN/
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
BACKUP
|
||||
BACKUP/*
|
||||
BAKUP/*
|
||||
# Windows shortcuts
|
||||
*.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->get('/en/desktop/api/v2/myfit/pricing', 'Myfit::pricing');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//reset pass & login
|
||||
$routes->post('/en/desktop/api/v2/myfituser/resetpass', 'Myfitauth::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/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 -------------------------------------------------------------
|
||||
$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/resources', 'Myfituser::users');
|
||||
|
||||
$routes->get('/en/desktop/api/v2/myfituser/trackcategory', 'Myfituser::users');
|
||||
|
||||
|
||||
//MYFIT DESKTOP USERS
|
||||
$routes->post('/en/mobile/api/v2/myfituser/login', 'Myfituser::users');
|
||||
|
||||
@@ -57,7 +57,8 @@ class Myfituser extends BaseController
|
||||
'remcategory' => ['GET'],
|
||||
'remmode' => ['GET'],
|
||||
'resources' => ['GET'],
|
||||
'trackcategory' => ['GET']
|
||||
'trackcategory' => ['GET'],
|
||||
'resetpass' => ['POST'],
|
||||
];
|
||||
|
||||
$res1 = [];
|
||||
@@ -115,6 +116,9 @@ class Myfituser extends BaseController
|
||||
case 'calendar':
|
||||
$res1 = $this->dummyData($raw_array);
|
||||
break;
|
||||
case 'resetpass': // reset password after login steps
|
||||
$res1 = $this->dummyData($raw_array);
|
||||
break;
|
||||
case 'profile':
|
||||
$res1 = $this->dummyData($raw_array);
|
||||
break;
|
||||
|
||||
@@ -18,12 +18,16 @@ class myfitHx extends Model
|
||||
{
|
||||
// $in['member_id'] = 16;
|
||||
$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']
|
||||
: 0;
|
||||
// $member_id = 13;
|
||||
$sqlQ =
|
||||
'SELECT * FROM members_login_hx WHERE member_id=' .
|
||||
$member_id;
|
||||
$member_id .
|
||||
' ORDER BY id DESC LIMIT 15';
|
||||
$query = $this->db->query($sqlQ);
|
||||
$data['loginhx_data'] = $query->getResultArray();
|
||||
return $inx = [
|
||||
|
||||
@@ -17,14 +17,16 @@ class myfitResources extends Model
|
||||
$ar = [
|
||||
'id' => $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;
|
||||
}
|
||||
|
||||
|
||||
return [
|
||||
'resources' => $dm,
|
||||
'category' => ['Blogs', 'Exercises', 'Videos'],
|
||||
'resources' => ['blog'=>$dm],
|
||||
'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