1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00

prepare handler for setting country

This commit is contained in:
Loic Blot 2015-01-05 19:17:08 +00:00
parent 925215e27c
commit 6fa1bfe17f
2 changed files with 8 additions and 0 deletions

View File

@ -24,4 +24,5 @@ $application->registerRoutes($this, array('routes' => array(
array('name' => 'sms#get_conversation', 'url' => '/get/conversation', 'verb' => 'GET'),
array('name' => 'sms#check_new_messages', 'url' => '/get/new_messages', 'verb' => 'GET'),
array('name' => 'sms#get_api_version', 'url' => '/get/apiversion', 'verb' => 'GET'),
array('name' => 'sms#set_country', 'url'=> '/set/country', 'verb' => 'POST'),
)));

View File

@ -279,4 +279,11 @@ class SmsController extends Controller {
}
return true;
}
/**
* @NoAdminRequired
*/
function setCountry($country) {
return new JSONResponse(array("status" => true, "msg" => "OK"));
}
}