Move to generateOcsUrl

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2019-10-12 15:39:25 +02:00 committed by Roeland Jago Douma
parent 0df5e0b0db
commit ffef4bd627
No known key found for this signature in database
GPG key ID: F941078878347C0C
3 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@
<script>
import ItemPreview from './components/ItemPreview'
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { generateUrl, generateOcsUrl } from '@nextcloud/router'
export default {
name: 'Accessibility',
@ -119,7 +119,7 @@ export default {
async selectItem(type, id) {
try {
await axios({
url: OC.linkToOCS('apps/accessibility/api/v1/config', 2) + type,
url: generateOcsUrl('apps/accessibility/api/v1/config', 2) + type,
method: id === '' ? 'DELETE' : 'POST',
data: {
value: id