mirror of
https://github.com/owntone/owntone-server.git
synced 2025-07-21 14:31:19 -04:00
[web] Change the outputs API calls
This commit is contained in:
parent
5c90442161
commit
468e9d8ba7
@ -1,13 +1,15 @@
|
||||
import api from '@/api'
|
||||
|
||||
const BASE_URL = './api/outputs'
|
||||
|
||||
export default {
|
||||
toggle(id) {
|
||||
return api.put(`./api/outputs/${id}/toggle`)
|
||||
return api.put(`${BASE_URL}/${id}/toggle`)
|
||||
},
|
||||
state() {
|
||||
return api.get('./api/outputs')
|
||||
return api.get(BASE_URL)
|
||||
},
|
||||
update(id, output) {
|
||||
return api.put(`./api/outputs/${id}`, output)
|
||||
return api.put(`${BASE_URL}/${id}`, output)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user