summaryrefslogtreecommitdiffstats
path: root/core/src/OC/routing.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-02-13 10:20:41 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-02-13 16:41:45 +0100
commitd4e68dd64a2433cb580f46041142b31bb2ebe6c8 (patch)
tree8b6479e01248f7643ba9f221c64a276e6265bafa /core/src/OC/routing.js
parentf39786660cccaf96f7d1ef2a72e030ccb456be8b (diff)
downloadnextcloud-server-d4e68dd64a2433cb580f46041142b31bb2ebe6c8.tar.gz
nextcloud-server-d4e68dd64a2433cb580f46041142b31bb2ebe6c8.zip
Deprecate OC router helpers that are provided by packages
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/OC/routing.js')
-rw-r--r--core/src/OC/routing.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/OC/routing.js b/core/src/OC/routing.js
index 9244212286d..0e8fcecd80d 100644
--- a/core/src/OC/routing.js
+++ b/core/src/OC/routing.js
@@ -106,6 +106,7 @@ export const generateUrl = (url, params, options) => {
* @param {string} app the app id to which the image belongs
* @param {string} file the name of the image file
* @returns {string}
+ * @deprecated 19.0.0 use `imagePath` from https://www.npmjs.com/package/@nextcloud/router
*/
export const imagePath = (app, file) => {
if (file.indexOf('.') === -1) {
@@ -122,6 +123,7 @@ export const imagePath = (app, file) => {
* @param {string} type the type of the file to link to (e.g. css,img,ajax.template)
* @param {string} file the filename
* @returns {string} Absolute URL for a file in an app
+ * @deprecated 19.0.0 use `generateFilePath` from https://www.npmjs.com/package/@nextcloud/router
*/
export const filePath = (app, type, file) => {
const isCore = coreApps.indexOf(app) !== -1
@@ -172,6 +174,7 @@ export const filePath = (app, type, file) => {
*
* @returns {string} web root path
*
+ * @deprecated 19.0.0 use `getRootUrl` from https://www.npmjs.com/package/@nextcloud/router
* @since 8.2
*/
export const getRootPath = () => OC.webroot