mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
18 lines
405 B
JavaScript
18 lines
405 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import {
|
|
getRootUrl as realGetRootUrl,
|
|
} from '@nextcloud/router'
|
|
|
|
/**
|
|
* Creates a relative url for remote use
|
|
*
|
|
* @param {string} service id
|
|
* @return {string} the url
|
|
*/
|
|
export function linkToRemoteBase(service) {
|
|
return realGetRootUrl() + '/remote.php/' + service
|
|
}
|