diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-07 11:47:10 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-09-07 12:06:46 +0300 |
commit | fea294bb29a2b58e93993914c11603278ebc7456 (patch) | |
tree | 4a1d5f6ba99b7df63117b383b7e64302de237bab /core/routes.php | |
parent | 16e1d1cb12229270d61d89dfda93399d056d456c (diff) |
Move unified search to OCS api
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/routes.php')
-rw-r--r-- | core/routes.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/routes.php b/core/routes.php index 5bb58f63e45..9fa378dc1d8 100644 --- a/core/routes.php +++ b/core/routes.php @@ -77,8 +77,6 @@ $application->registerRoutes($this, [ ['name' => 'RecommendedApps#index', 'url' => '/core/apps/recommended', 'verb' => 'GET'], ['name' => 'Svg#getSvgFromCore', 'url' => '/svg/core/{folder}/{fileName}', 'verb' => 'GET'], ['name' => 'Svg#getSvgFromApp', 'url' => '/svg/{app}/{fileName}', 'verb' => 'GET'], - ['name' => 'UnifiedSearch#getProviders', 'url' => '/search/providers', 'verb' => 'GET'], - ['name' => 'UnifiedSearch#search', 'url' => '/search/providers/{providerId}/search', 'verb' => 'GET'], ['name' => 'Css#getCss', 'url' => '/css/{appName}/{fileName}', 'verb' => 'GET'], ['name' => 'Js#getJs', 'url' => '/js/{appName}/{fileName}', 'verb' => 'GET'], ['name' => 'contactsMenu#index', 'url' => '/contactsmenu/contacts', 'verb' => 'POST'], @@ -113,7 +111,11 @@ $application->registerRoutes($this, [ ['root' => '/collaboration', 'name' => 'CollaborationResources#removeResource', 'url' => '/resources/collections/{collectionId}', 'verb' => 'DELETE'], ['root' => '/collaboration', 'name' => 'CollaborationResources#getCollectionsByResource', 'url' => '/resources/{resourceType}/{resourceId}', 'verb' => 'GET'], - ['root' => '/collaboration', 'name' => 'CollaborationResources#createCollectionOnResource', 'url' => '/resources/{baseResourceType}/{baseResourceId}', 'verb' => 'POST'] + ['root' => '/collaboration', 'name' => 'CollaborationResources#createCollectionOnResource', 'url' => '/resources/{baseResourceType}/{baseResourceId}', 'verb' => 'POST'], + + // Unified search + ['root' => '/search', 'name' => 'UnifiedSearch#getProviders', 'url' => '/providers', 'verb' => 'GET'], + ['root' => '/search', 'name' => 'UnifiedSearch#search', 'url' => '/providers/{providerId}/search', 'verb' => 'GET'], ], ]); |