mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 21:03:00 -05:00
[web] Change the outputs API calls
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user