mirror of
https://github.com/owntone/owntone-server.git
synced 2025-07-18 13:12:52 -04:00
[web] Change the remotes API calls
This commit is contained in:
parent
c34c5eb585
commit
8048bb15ff
@ -1,10 +1,12 @@
|
|||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
|
|
||||||
|
const BASE_URL = './api/pairing'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
pair(pin) {
|
pair(pin) {
|
||||||
return api.post('./api/pairing', { pin })
|
return api.post(BASE_URL, { pin })
|
||||||
},
|
},
|
||||||
state() {
|
state() {
|
||||||
return api.get('./api/pairing')
|
return api.get(BASE_URL)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user