Backend Service

This commit is contained in:
2019-03-15 19:16:16 +00:00
parent 41a75b9c3c
commit f7c5718846
6 changed files with 64 additions and 9 deletions
+11 -6
View File
@@ -20,13 +20,14 @@ header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json');
$endpoints = array(
'createuser' => array('POST'),
'login' => array('POST'),
'userlogin' => array('POST'),
'getprofile' => array('POST'),
'createuser' => array('POST'),
'login' => array('POST'),
'userlogin' => array('POST'),
'getprofile' => array('POST'),
'setprofile' => array('POST'),
'userstask' => array('POST'),
'createtask' => array('POST')
'createtask' => array('POST'),
'deletetask' => array('POST')
);
/*
header("Access-Control-Allow-Origin: *");
@@ -96,7 +97,11 @@ switch ($endpoint) {
case 'setprofile':
$in["action"] = MERMS_USER_UPDATEPROFILE;
$in["task_mode"] = MODE_SETVALUE;
break;
break;
case 'deletetask':
$in["action"] = MERMS_USER_REMINDERS;
$in["task_mode"] = USER_DELETETASK;
break;
}