diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2021-07-15 12:46:14 +0000 |
---|---|---|
committer | MichaIng <micha@dietpi.com> | 2021-07-23 15:56:28 +0200 |
commit | 6e5191b7021b448a48d741233bd17ab3c222119f (patch) | |
tree | 26c353643f5d1dd764d512e1fd15e15168d54346 /apps/user_status/src | |
parent | 229bfcbab56e2de473d2d34bb7d86b5665d4ab35 (diff) | |
download | nextcloud-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 'apps/user_status/src')
-rw-r--r-- | apps/user_status/src/services/predefinedStatusService.js | 2 | ||||
-rw-r--r-- | apps/user_status/src/services/statusService.js | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/user_status/src/services/predefinedStatusService.js b/apps/user_status/src/services/predefinedStatusService.js index 97cc9663e62..b4c9ed4a96a 100644 --- a/apps/user_status/src/services/predefinedStatusService.js +++ b/apps/user_status/src/services/predefinedStatusService.js @@ -29,7 +29,7 @@ import { generateOcsUrl } from '@nextcloud/router' * @returns {Promise<void>} */ const fetchAllPredefinedStatuses = async() => { - const url = generateOcsUrl('apps/user_status/api/v1', 2) + '/predefined_statuses?format=json' + const url = generateOcsUrl('apps/user_status/api/v1/predefined_statuses?format=json') const response = await HttpClient.get(url) return response.data.ocs.data diff --git a/apps/user_status/src/services/statusService.js b/apps/user_status/src/services/statusService.js index 3983e412974..caaea503b8e 100644 --- a/apps/user_status/src/services/statusService.js +++ b/apps/user_status/src/services/statusService.js @@ -29,7 +29,7 @@ import { generateOcsUrl } from '@nextcloud/router' * @returns {Promise<Object>} */ const fetchCurrentStatus = async() => { - const url = generateOcsUrl('apps/user_status/api/v1', 2) + 'user_status' + const url = generateOcsUrl('apps/user_status/api/v1/user_status') const response = await HttpClient.get(url) return response.data.ocs.data @@ -42,7 +42,7 @@ const fetchCurrentStatus = async() => { * @returns {Promise<void>} */ const setStatus = async(statusType) => { - const url = generateOcsUrl('apps/user_status/api/v1', 2) + 'user_status/status' + const url = generateOcsUrl('apps/user_status/api/v1/user_status/status') await HttpClient.put(url, { statusType, }) @@ -56,7 +56,7 @@ const setStatus = async(statusType) => { * @returns {Promise<void>} */ const setPredefinedMessage = async(messageId, clearAt = null) => { - const url = generateOcsUrl('apps/user_status/api/v1', 2) + 'user_status/message/predefined?format=json' + const url = generateOcsUrl('apps/user_status/api/v1/user_status/message/predefined?format=json') await HttpClient.put(url, { messageId, clearAt, @@ -72,7 +72,7 @@ const setPredefinedMessage = async(messageId, clearAt = null) => { * @returns {Promise<void>} */ const setCustomMessage = async(message, statusIcon = null, clearAt = null) => { - const url = generateOcsUrl('apps/user_status/api/v1', 2) + 'user_status/message/custom?format=json' + const url = generateOcsUrl('apps/user_status/api/v1/user_status/message/custom?format=json') await HttpClient.put(url, { message, statusIcon, @@ -86,7 +86,7 @@ const setCustomMessage = async(message, statusIcon = null, clearAt = null) => { * @returns {Promise<void>} */ const clearMessage = async() => { - const url = generateOcsUrl('apps/user_status/api/v1', 2) + 'user_status/message?format=json' + const url = generateOcsUrl('apps/user_status/api/v1/user_status/message?format=json') await HttpClient.delete(url) } |