1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Add query + routes to drop all user messages

This commit is contained in:
Loic Blot
2018-09-08 00:18:56 +02:00
committed by Loïc Blot
parent 615ba409e5
commit 267872b396
3 changed files with 22 additions and 2 deletions
+1
View File
@@ -27,6 +27,7 @@ $application->registerRoutes($this, array('routes' => array(
array('name' => 'sms#retrieve_all_peers', 'url' => '/front-api/v1/peerlist', 'verb' => 'GET'),
array('name' => 'sms#get_conversation', 'url' => '/front-api/v1/conversation', 'verb' => 'GET'),
array('name' => 'sms#check_new_messages', 'url' => '/front-api/v1/new_messages', 'verb' => 'GET'),
array('name' => 'sms#wipe_all_user_messages', 'url' => '/front-api/v1/delete/all', 'verb' => 'POST'),
array('name' => 'settings#get_settings', 'url'=> '/front-api/v1/settings', 'verb' => 'GET'),
// Android API v1 doesn't have a version in the URL, be careful