Move to generateOcsUrl
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
0df5e0b0db
commit
ffef4bd627
3 changed files with 2 additions and 2 deletions
Binary file not shown.
Binary file not shown.
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue