Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ocsms.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2014-09-15 20:00:48 +0400
committerLoic Blot <loic.blot@unix-experience.fr>2014-09-15 20:01:02 +0400
commitad1353c63c573fe33ac0f4d2c778b3bd86983f43 (patch)
tree753dc6bc08dfdd50961f9481341b5c5e4bdc79d6 /appinfo/routes.php
parent128167196a6d789263ecf6abd1d3065d35e50817 (diff)
Add replace function to purge all database before adding every record. Also add a delete before insert function when writing to DB, preventing SMS duplicates
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 9424a14..dede5b9 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -11,18 +11,11 @@
namespace OCA\OcSms\AppInfo;
-/**
- * Create your routes in here. The name is the lowercase name of the controller
- * without the controller part, the stuff after the hash is the method.
- * e.g. page#index -> PageController->index()
- *
- * The controller class has to be registered in the application.php file since
- * it's instantiated in there
- */
$application = new Application();
$application->registerRoutes($this, array('routes' => array(
array('name' => 'sms#index', 'url' => '/', 'verb' => 'GET'),
array('name' => 'sms#push', 'url' => '/push', 'verb' => 'POST'),
+ array('name' => 'sms#replace', 'url' => '/replace', 'verb' => 'POST'),
array('name' => 'sms#retrieve_all_ids', 'url' => '/get/ids/all', 'verb' => 'GET'),
)));