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

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appinfo/routes.php8
-rw-r--r--lib/Controller/SearchController.php6
2 files changed, 7 insertions, 7 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 2a60be0..eb221ea 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -61,18 +61,18 @@ return [
'verb' => 'POST'
],
[
- 'name' => 'search#getSuggestions',
+ 'name' => 'search#suggestRequest',
'url' => 'ajax/suggest.php',
'verb' => 'POST'
],
[
- 'name' => 'search#searchRequestShareLink',
+ 'name' => 'search#searchRequestPublic',
'url' => 'ajax/search_public.php',
'verb' => 'POST'
],
[
- 'name' => 'search#getSuggestionsShareLink',
- 'url' => 'ajax/suggest_sharelink.php',
+ 'name' => 'search#suggestRequestPublic',
+ 'url' => 'ajax/suggest_public.php',
'verb' => 'POST'
]
]
diff --git a/lib/Controller/SearchController.php b/lib/Controller/SearchController.php
index a46c752..be1c2de 100644
--- a/lib/Controller/SearchController.php
+++ b/lib/Controller/SearchController.php
@@ -157,7 +157,7 @@ class SearchController extends Controller
* @NoAdminRequired
* @NoCSRFRequired
*/
- public function getSuggestions($query)
+ public function suggestRequest($query)
{
if (! $this->solrService)
return false;
@@ -180,7 +180,7 @@ class SearchController extends Controller
* @NoCSRFRequired
* @PublicPage
*/
- public function searchRequestShareLink($query, $key)
+ public function searchRequestPublic($query, $key)
{
$results = array();
@@ -264,7 +264,7 @@ class SearchController extends Controller
* @NoCSRFRequired
* @PublicPage
*/
- public function getSuggestionsShareLink($query)
+ public function searchRequestPublic($query)
{
if (! $this->solrService)
return false;