summaryrefslogtreecommitdiffstats
path: root/core/src/services
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2021-07-15 12:46:14 +0000
committerMichaIng <micha@dietpi.com>2021-07-23 15:56:28 +0200
commit6e5191b7021b448a48d741233bd17ab3c222119f (patch)
tree26c353643f5d1dd764d512e1fd15e15168d54346 /core/src/services
parent229bfcbab56e2de473d2d34bb7d86b5665d4ab35 (diff)
downloadnextcloud-server-6e5191b7021b448a48d741233bd17ab3c222119f.tar.gz
nextcloud-server-6e5191b7021b448a48d741233bd17ab3c222119f.zip
Bump @nextcloud/router from 1.2.0 to 2.0.0
Bumps [@nextcloud/router](https://github.com/nextcloud/nextcloud-router) from 1.2.0 to 2.0.0. - [Release notes](https://github.com/nextcloud/nextcloud-router/releases) - [Changelog](https://github.com/nextcloud/nextcloud-router/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-router/compare/v1.2.0...v2.0.0) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'core/src/services')
-rw-r--r--core/src/services/UnifiedSearchService.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/services/UnifiedSearchService.js b/core/src/services/UnifiedSearchService.js
index 09d0d02fedf..a838d61bfd6 100644
--- a/core/src/services/UnifiedSearchService.js
+++ b/core/src/services/UnifiedSearchService.js
@@ -45,7 +45,7 @@ const createCancelToken = () => axios.CancelToken.source()
*/
export async function getTypes() {
try {
- const { data } = await axios.get(generateOcsUrl('search', 2) + 'providers', {
+ const { data } = await axios.get(generateOcsUrl('search/providers'), {
params: {
// Sending which location we're currently at
from: window.location.pathname.replace('/index.php', '') + window.location.search,
@@ -76,7 +76,7 @@ export function search({ type, query, cursor }) {
*/
const cancelToken = createCancelToken()
- const request = async() => axios.get(generateOcsUrl('search', 2) + `providers/${type}/search`, {
+ const request = async() => axios.get(generateOcsUrl('search/providers/{type}/search', { type }), {
cancelToken: cancelToken.token,
params: {
term: query,